]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: check for ext[23] file system features when mounting as ext[23]
authorTheodore Ts'o <tytso@mit.edu>
Mon, 18 Apr 2011 21:29:14 +0000 (17:29 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 18 Apr 2011 21:29:14 +0000 (17:29 -0400)
commit48628f1847ba52b08a01ad7af8881ba01dd61f0b
tree6a97e536fd5fbdc29e4b471195a5dd5a0df35fc6
parent9471f3c8ebc6a0a222c5a404b7ae7a2ae48db1cc
ext4: check for ext[23] file system features when mounting as ext[23]

Provide better emulation for ext[23] mode by enforcing that the file
system does not have any unsupported file system features as defined
by ext[23] when emulating the ext[23] file system driver when
CONFIG_EXT4_USE_FOR_EXT23 is defined.

This causes the file system type information in /proc/mounts to be
correct for the automatically mounted root file system.  This also
means that "mount -t ext2 /dev/sda /mnt" will fail if /dev/sda
contains an ext3 or ext4 file system, just as one would expect if the
original ext2 file system driver were in use.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/super.c