ext3: force ro mount if ext3_setup_super() fails
authorEric Sandeen <sandeen@redhat.com>
Thu, 24 May 2012 17:00:37 +0000 (12:00 -0500)
committerJan Kara <jack@suse.cz>
Mon, 9 Jul 2012 10:03:11 +0000 (12:03 +0200)
commitf007dbf8e51f4a0910194eebc2aa119eb861893e
tree568ef2396a9396ac7adf69d18811f40a43302b0d
parentf3da93105b6963a2be2a56dee27fdc88ac4ad769
ext3: force ro mount if ext3_setup_super() fails

If ext3_setup_super() fails i.e. due to a too-high revision,
the error is logged in dmesg but the fs is not mounted RO as
indicated.

Tested by:

[164152.114551] EXT3-fs (sdb6): error: revision level too high, forcing read-only mode
/dev/sdb6 /mnt/test2 ext3 rw,seclabel,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered 0 0
                          ^^

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext3/super.c