From: Theodore Ts'o Date: Tue, 27 Jul 2004 00:11:49 +0000 (-0400) Subject: pass1.c (process_block): Change the limit of directory size from X-Git-Tag: E2FSPROGS-1_36~152 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8421fb67f26ce99e5a13735067ea2745b1695df7;p=thirdparty%2Fe2fsprogs.git pass1.c (process_block): Change the limit of directory size from 32 MB to 2GB. --- diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog index 30a0b9624..eb855489e 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 a02fd6d39..2fde92bb6 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;