From 8421fb67f26ce99e5a13735067ea2745b1695df7 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Mon, 26 Jul 2004 20:11:49 -0400 Subject: [PATCH] pass1.c (process_block): Change the limit of directory size from 32 MB to 2GB. --- e2fsck/ChangeLog | 5 +++++ e2fsck/pass1.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog index 30a0b96..eb85548 100644 --- a/e2fsck/ChangeLog +++ b/e2fsck/ChangeLog @@ -1,3 +1,8 @@ +2004-07-26 Theodore Ts'o + + * pass1.c (process_block): Change the limit of directory size from + 32 MB to 2GB. + 2004-05-11 Theodore Ts'o * journal.c (sync_blockdev): Flush I/O caches to preserve ordering diff --git a/e2fsck/pass1.c b/e2fsck/pass1.c index a02fd6d..2fde92b 100644 --- a/e2fsck/pass1.c +++ b/e2fsck/pass1.c @@ -1491,7 +1491,7 @@ static int process_block(ext2_filsys fs, } p->previous_block = blk; - if (p->is_dir && blockcnt > (1 << (15 - fs->super->s_log_block_size))) + if (p->is_dir && blockcnt > (1 << (21 - fs->super->s_log_block_size))) problem = PR_1_TOOBIG_DIR; if (p->is_reg && p->num_blocks+1 >= p->max_blocks) problem = PR_1_TOOBIG_REG; -- 1.8.3.1