Whamcloud - gitweb
e2fsck: Move check to add an index to a directory after fixing i_size
authorTheodore Ts'o <tytso@mit.edu>
Sat, 28 Nov 2009 14:44:08 +0000 (09:44 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 29 Nov 2009 06:03:04 +0000 (01:03 -0500)
commita49249d2e314d503f203ed1cce73fdf7f5d09ddc
treec2bbd124d94fc477a8245e87aed6a42cff8a3402
parent4dbe79bcf3c693f9ae607506850eda7ea92892ab
e2fsck: Move check to add an index to a directory after fixing i_size

The check that determines whether an directory needs to be have an
index added to it depends on i_size.  So move it after we have fixed
up i_size so that we reliable will rehash a directory that needs it,
even if its i_size field was originally incorrect.  Otherwise, a
second run of e2fsck would be needed before the directory gets an
index added.

Thanks to Mikulas Patocka for providing a sample file system which
demonstrated this problem.

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