]> 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)
commit8fcb755910128a99b41963f445cc96accfe7a64a
tree7e9c20d13d06f6b6bedffff60cf61a093a625bac
parent3413d1cc8b9d26be18c35d8542f1dc2ea566b179
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