given modern memory sizes. Now, for filesystems greater than 4GB, we
use a journal of 128 MB instead 32 MB.
2005-05-09 Theodore Ts'o <tytso@mit.edu>
+ * util.c (figure_journal_size): Change the default journal size to
+ be bigger for larger filesystems, given modern memory
+ sizes. Now, for filesystems greater than 4GB, we use a
+ journal of 128 MB instead 32 MB.
+
* tune2fs.c (main): Fix grammar in message printed when setting
the check interval (tune2fs -i)
if (fs->super->s_blocks_count < 32768)
j_blocks = 1024;
- else if (fs->super->s_blocks_count < 262144)
+ else if (fs->super->s_blocks_count < 256*1024)
j_blocks = 4096;
- else
+ else if (fs->super->s_blocks_count < 512*1024)
j_blocks = 8192;
+ else if (fs->super->s_blocks_count < 1024*1024)
+ j_blocks = 16384;
+ else
+ j_blocks = 32768;
+
return j_blocks;
}