From d49db19e0d7810662ba5f8c985e924734d4ebb6c Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Mon, 2 Oct 2006 08:31:54 -0400 Subject: [PATCH] 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" --- misc/ChangeLog | 6 ++++++ misc/util.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/misc/ChangeLog b/misc/ChangeLog index 5a21806..2e29a34 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 7cb952f..57ce2b3 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) -- 1.8.3.1