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)
commitc4f65706056e9f0c2cf126b29c6920a179d91150
tree7e9c20d13d06f6b6bedffff60cf61a093a625bac
parent9c191f701ce9f9bc604e88a5dc69cd943daa5d3b
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
This page took 0.025839 seconds and 5 git commands to generate.