mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 13:44:15 +08:00
logfs: Return -EINVAL if filesystem image doesn't match
Signed-off-by: Joern Engel <joern@logfs.org>
This commit is contained in:
parent
2e531fa0d0
commit
ad342631f1
@ -413,7 +413,7 @@ static int __logfs_read_sb(struct super_block *sb)
|
||||
|
||||
page = find_super_block(sb);
|
||||
if (!page)
|
||||
return -EIO;
|
||||
return -EINVAL;
|
||||
|
||||
ds = page_address(page);
|
||||
super->s_size = be64_to_cpu(ds->ds_filesystem_size);
|
||||
|
Loading…
Reference in New Issue
Block a user