Whamcloud - gitweb
Fix mke2fs defaults when /etc/mke2fs.conf doesn't exist
authorEric Sandeen <sandeen@redhat.com>
Tue, 8 May 2007 03:38:14 +0000 (23:38 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 8 May 2007 03:38:14 +0000 (23:38 -0400)
commita25d231a8a153f48984f84f44a6b548b779cf6b1
tree06ae2643799ef2689c4704a7a3b54706e4d72e8a
parentfbfcaa661bded359d7420cb633e8dcf630f7f360
Fix mke2fs defaults when /etc/mke2fs.conf doesn't exist

One of our testers filed a bug that said "mkfs.ext3 is much slower
when mke2fs.conf is missing..."

This is because the shipped defaults in mke2fs.conf do not match the
shipped defaults in the mkfs code itself; he wound up making a 1k
block filesystem on a very large block device, for example.

So - How about this patch, to bring them back into line?  Which makes
me wonder; having "defaults" in 2 different places is bound to get out
of sync; should we instead generate both code & config file defaults
(and maybe man page defaults) from a common source?

Anyway, here's a patch to bring mke2fs.conf and mke2fs.c into line for
current defaults...

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
misc/mke2fs.c