Whamcloud - gitweb
ext4: fix rehashing of the lost+found directory
authorTheodore Ts'o <tytso@mit.edu>
Wed, 15 Aug 2012 17:00:14 +0000 (13:00 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 15 Aug 2012 18:49:01 +0000 (14:49 -0400)
commit82372e32de94f0ad142123b123e6af8e597e4526
tree1de97c129c631f8279dc28e50aff2a47897644fd
parent9f0dbd24f8afae38676350cc8c46c716c4cd753b
ext4: fix rehashing of the lost+found directory

Commit 07307114dea didn't correctly handle the lost+found directory
when it added support for metadata checksums.  First of all,
e2fsck_get_lost_and_found() assumed that the inode_dir_map bitmap was
initialized, and it wasn't when it was called earlier by a change in
that commit.  Secondly, it's important that lost+found dirctory is
processed in case its directory checksums are incorrect, but should
preserve any empty dirctory blocks so there space available for e2fsck
to reconnect any orphan inodes.

Fix these problems, to fix test failures: f_holedir2 and f_rehash_dir

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/pass1.c
e2fsck/pass3.c
e2fsck/rehash.c