summaryrefslogtreecommitdiff
path: root/e2fsck/problem.h
diff options
context:
space:
mode:
authorAndreas Dilger <adilger@whamcloud.com>2021-02-02 01:25:49 -0700
committerTheodore Ts'o <tytso@mit.edu>2021-02-08 22:40:42 -0500
commitf15b1aaf8f1241ac55057ec61a0d399147fc644b (patch)
tree9d341034465ca966b9417bbefe086e42e1ee54bc /e2fsck/problem.h
parentd9844883a1148d58844a345abbd35b63321d9eeb (diff)
downloade2fsprogs-f15b1aaf8f1241ac55057ec61a0d399147fc644b.tar.gz
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: 49f28a06b738 ("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>
Diffstat (limited to 'e2fsck/problem.h')
-rw-r--r--e2fsck/problem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/e2fsck/problem.h b/e2fsck/problem.h
index 922c99df..24cdcf9b 100644
--- a/e2fsck/problem.h
+++ b/e2fsck/problem.h
@@ -963,8 +963,8 @@ struct problem_context {
/* Clear invalid HTREE directory */
#define PR_2_HTREE_CLEAR 0x020038
-/* Clear the htree flag forcibly */
-/* #define PR_2_HTREE_FCLR 0x020039 */
+/* Filesystem has large directories, but has no such flag in superblock */
+#define PR_2_FEATURE_LARGE_DIRS 0x020039
/* Bad block in htree interior node */
#define PR_2_HTREE_BADBLK 0x02003A