Whamcloud - gitweb
e2fsck: speed up runs when using tdb for large atypical filesystems
authorTheodore Ts'o <tytso@mit.edu>
Tue, 29 Nov 2011 16:24:52 +0000 (11:24 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 29 Nov 2011 16:24:52 +0000 (11:24 -0500)
commit4e523bbe00cfa0240b4581eeca0c097b05c9fe3e
tree167abb1aa7df66296ae83c08e440ac6a71b7f687
parentdb40c20e3fd66d90d29a41bef9eb20d1e0745906
e2fsck: speed up runs when using tdb for large atypical filesystems

Optimize how the tdb library so that running with [scratch_files] in
/etc/e2fsck.conf is more efficient.  Use a better hash function,
supplied by Rogier Wolff, and supply an estimate of the size of the
hash table to tdb_open instead of using the default (which is way too
small in most cases).  Also, disable the tdb locking and fsync calls,
since it's not necessary for our use in this case (which is
essentially as cheap swap space; the tdb files do not contain
persistent data.)

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/dirinfo.c
lib/ext2fs/icount.c
lib/ext2fs/tdb.c