Whamcloud - gitweb
Increase default journal size to guarantee working on-line resizing
authorTheodore Ts'o <tytso@mit.edu>
Mon, 2 Oct 2006 12:31:54 +0000 (08:31 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 2 Oct 2006 12:31:54 +0000 (08:31 -0400)
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" <tytso@mit.edu>
misc/ChangeLog
misc/util.c

index 5a21806..2e29a34 100644 (file)
@@ -1,3 +1,9 @@
+2006-10-02  Theodore Tso  <tytso@mit.edu>
+
+       * 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  <tytso@mit.edu>
 
        * Makefile.in (DEPLIBBLKID): Use DEPLIBBLKID not LIBBLKID to
index 7cb952f..57ce2b3 100644 (file)
@@ -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)