Whamcloud - gitweb
Add a more sophisticated algorithm to e2fsck to salvage corrupted
authorTheodore Ts'o <tytso@mit.edu>
Sat, 28 Sep 2002 13:16:28 +0000 (09:16 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 28 Sep 2002 13:16:28 +0000 (09:16 -0400)
commite70ae99e077f5085c15a4526028e2aac0e91d7c1
tree5e293cb21b1cb5cb7d33027bb63f51fd2a05b2e7
parent0a3a541509b39003445c50b879c0037f14ff2c70
Add a more sophisticated algorithm to e2fsck to salvage corrupted
directories.

Speed up e2fsck slightly by only updating the master superblock;
there is no point to update the backup superblocks.

Fix a small bug in the rehashing code which could leave the indexed
flag set even after the directory was compressed instead of indexed.
(Not fatal, since the kernel will deal with this, but technically
it filesystem isn't consistent, and the filesystem will be marked
as being in error when the kernel comes across the directory.  It
should also never happen in real life, since directories that small
will never be indexed, but better safe than sorry.)

Also change the threshold of when directories are indexed, so that
directories of size 2 blocks will be indexed.  Otherwise they will
never be indexed by the kernel when they grow.
e2fsck/ChangeLog
e2fsck/pass2.c
e2fsck/rehash.c
e2fsck/unix.c