e2fsprogs/tests/f_recnect_bad
Andreas Dilger f15b1aaf8f e2fsck: fix check of directories over 4GB
If directories grow larger than 4GB in size with the large_dir
feature, e2fsck will consider them to be corrupted and clear
the high bits of the size.

Since it isn't very common to have directories this large, and
unlike sparse files that don't have ill effects if the size is
too large, an too-large directory will have all of the sparse
blocks filled in by e2fsck, so huge directories should still
be viewed with suspicion.  Check for consistency between two of
the three among block count, inode size, and superblock large_dir
flag before deciding whether the directory inode should be fixed
or cleared, or if large_dir should be set in the superblock.

Update the f_recnect_bad test case to match new output.

Fixes: 49f28a06b7 ("e2fsck: allow to check >2GB sized directory")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Lustre-bug-id: https://jira.whamcloud.com/browse/LU-14345
Change-Id: I1b898cdab95d239ba1a7b37eb96255acadce7057
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2021-02-08 22:40:42 -05:00
..
expect.1 e2fsck: fix check of directories over 4GB 2021-02-08 22:40:42 -05:00
expect.2 ChangeLog, e2fsck.h, pass1.c, pass2.c, pass4.c, swapfs.c: 1999-06-25 15:40:18 +00:00
image.gz ChangeLog, e2fsck.h, pass1.c, pass2.c, pass4.c, swapfs.c: 1999-06-25 15:40:18 +00:00
name ChangeLog, e2fsck.h, pass1.c, pass2.c, pass4.c, swapfs.c: 1999-06-25 15:40:18 +00:00