logfs: Return -EINVAL if filesystem image doesn't match

Signed-off-by: Joern Engel <joern@logfs.org>
This commit is contained in:
Joern Engel 2010-04-27 13:45:31 +02:00
parent 2e531fa0d0
commit ad342631f1

View File

@ -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);