Whamcloud - gitweb
Fix EXT4_FEATURE_RO_COMPAT_HUGE_FILE check
authorJustin Maggard <jmaggard10@gmail.com>
Mon, 22 Nov 2010 22:32:28 +0000 (17:32 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 22 Nov 2010 22:32:28 +0000 (17:32 -0500)
commit4fca2b9c07981abca16d337b2e57f78569cbbe05
tree54cf7e7a89b5c02685e94ce6adc4465fddb3197d
parentf35c7b55946788a4e3a9c9a73885e9a2e6e045e4
Fix EXT4_FEATURE_RO_COMPAT_HUGE_FILE check

Creating a 4TB file on a filesystem with the 64bit flag set results in
e2fsck consistently complaining about i_blocks being wrong, with
confusing messages like this:

Inode 29818882, i_blocks is 8388608816, should be 8388608816.  Fix? no

That appears to be caused by ext2fs_inode_i_blocks() checking for the
EXT4_FEATURE_RO_COMPAT_HUGE_FILE in the wrong place.  Fix it.

Signed-off-by: Justin Maggard <jmaggard10@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/blknum.c