]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: kill i_version support for Hurd-castrated file systems
authorTheodore Ts'o <tytso@mit.edu>
Thu, 20 Mar 2014 04:32:57 +0000 (00:32 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 20 Mar 2014 04:32:57 +0000 (00:32 -0400)
commit93be3d07fae9b66d5d72ecc2667a9539be62e4f0
tree7e9c20d13d06f6b6bedffff60cf61a093a625bac
parentd7a26ba70d3da7c5728565681d2afa3e6663843f
ext4: kill i_version support for Hurd-castrated file systems

The Hurd file system uses uses the inode field which is now used for
i_version for its translator block.  This means that ext2 file systems
that are formatted for GNU Hurd can't be used to support NFSv4.  Given
that Hurd file systems don't support extents, and a huge number of
modern file system features, this is no great loss.

If we don't do this, the attempt to update the i_version field will
stomp over the translator block field, which will cause file system
corruption for Hurd file systems.  This can be replicated via:

mke2fs -t ext2 -o hurd /dev/vdc
mount -t ext4 /dev/vdc /vdc
touch /vdc/bug0000
umount /dev/vdc
e2fsck -f /dev/vdc

Addresses-Debian-Bug: #738758

Reported-By: Gabriele Giacone <1o5g4r8o@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c