diff options
author | Eric Sandeen <sandeen@redhat.com> | 2012-05-28 14:17:25 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-10 00:33:04 +0900 |
commit | e36db7f818de59e3b0fdeaabda97e696a177b9a9 (patch) | |
tree | 6fe264df5959fdc518f5babd9241dc0687bd676d /drivers/telephony/phonedev.c | |
parent | 570986003b9cd61b7ccf03beacb56f5f5f6f3409 (diff) | |
download | kernel_samsung_crespo-e36db7f818de59e3b0fdeaabda97e696a177b9a9.zip kernel_samsung_crespo-e36db7f818de59e3b0fdeaabda97e696a177b9a9.tar.gz kernel_samsung_crespo-e36db7f818de59e3b0fdeaabda97e696a177b9a9.tar.bz2 |
ext4: force ro mount if ext4_setup_super() fails
commit 7e84b6216467b84cd332c8e567bf5aa113fd2f38 upstream.
If ext4_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:
# mkfs.ext4 -r 4 /dev/sdb6
# mount /dev/sdb6 /mnt/test
# dmesg | grep "too high"
[164919.759248] EXT4-fs (sdb6): revision level too high, forcing read-only mode
# grep sdb6 /proc/mounts
/dev/sdb6 /mnt/test2 ext4 rw,seclabel,relatime,data=ordered 0 0
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/telephony/phonedev.c')
0 files changed, 0 insertions, 0 deletions