From: Theodore Ts'o Date: Mon, 2 Oct 2006 12:31:54 +0000 (-0400) Subject: Increase default journal size to guarantee working on-line resizing X-Git-Tag: E2FSPROGS-1_40-WIP-1114~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d49db19e0d7810662ba5f8c985e924734d4ebb6c;p=thirdparty%2Fe2fsprogs.git Increase default journal size to guarantee working on-line resizing Make the smallest journal be 1400 blocks instead of 1024 blocks to make sure there is enough room to support on-line resizing. Signed-off-by: "Theodore Ts'o" --- diff --git a/misc/ChangeLog b/misc/ChangeLog index 5a218062d..2e29a34b0 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,3 +1,9 @@ +2006-10-02 Theodore Tso + + * util.c (figure_journal_size): Increase the smallest default + journal size from 1024 to 1400 to make sure it is big + enough for on-line resizing. + 2006-10-01 Theodore Tso * Makefile.in (DEPLIBBLKID): Use DEPLIBBLKID not LIBBLKID to diff --git a/misc/util.c b/misc/util.c index 7cb952f89..57ce2b3a9 100644 --- a/misc/util.c +++ b/misc/util.c @@ -275,7 +275,7 @@ int figure_journal_size(int size, ext2_filsys fs) } if (fs->super->s_blocks_count < 32768) - j_blocks = 1024; + j_blocks = 1400; else if (fs->super->s_blocks_count < 256*1024) j_blocks = 4096; else if (fs->super->s_blocks_count < 512*1024)