logfs: Return -EINVAL if filesystem image doesn't match
authorJoern Engel <joern@logfs.org>
Tue, 27 Apr 2010 11:45:31 +0000 (13:45 +0200)
committerJoern Engel <joern@logfs.org>
Sat, 1 May 2010 16:02:20 +0000 (18:02 +0200)
Signed-off-by: Joern Engel <joern@logfs.org>
fs/logfs/super.c

index 7fc4625..edd9948 100644 (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);