Whamcloud - gitweb
Avoid counting directory entries during a directory salvage.
authorTheodore Ts'o <tytso@mit.edu>
Mon, 30 Sep 2002 15:19:19 +0000 (11:19 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 30 Sep 2002 15:19:19 +0000 (11:19 -0400)
commitad4fa4660404ed88a3231fee338397af11e041b4
tree31d05063f12b54330d8e9ea9a1a1c168a5c5b58d
parent93599d0c408ef167c6e18537668a74e76f925c29
Avoid counting directory entries during a directory salvage.

Add additional checks to HTREE directories.  We now check the count
and limit fields in the htree header, as well as assuring that the
hash table in each interior node is in ascending order.  We also
check to make sure all leaf nodes are have the expected depth in
the tree.

Updated test cases to deal with all of the above.
18 files changed:
e2fsck/ChangeLog
e2fsck/e2fsck.h
e2fsck/pass2.c
e2fsck/problem.c
e2fsck/problem.h
tests/ChangeLog
tests/f_h_badnode/expect.1
tests/f_h_badroot/expect.1
tests/f_h_badroot/expect.2
tests/f_h_badroot/image.gz
tests/f_h_reindex/expect.1 [new file with mode: 0644]
tests/f_h_reindex/expect.2 [new file with mode: 0644]
tests/f_h_reindex/image.gz [new file with mode: 0644]
tests/f_h_reindex/name [new file with mode: 0644]
tests/f_salvage_dir/expect.1 [new file with mode: 0644]
tests/f_salvage_dir/expect.2 [new file with mode: 0644]
tests/f_salvage_dir/image.gz [new file with mode: 0644]
tests/f_salvage_dir/name [new file with mode: 0644]