Whamcloud - gitweb
Fix edge case when i_size doesn't get fixed until second e2fsck run
authorTheodore Ts'o <tytso@mit.edu>
Sat, 31 Mar 2007 22:56:09 +0000 (18:56 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 31 Mar 2007 22:56:09 +0000 (18:56 -0400)
commit441ab1e02096e3c968cae6ddfde73140fcad8199
treecd5afa986bd4ed2de7dfa16a9461f860d54ca18f
parent971fe056305c7f57629d609490701e13298e658b
Fix edge case when i_size doesn't get fixed until second e2fsck run

Don't assume that a special device is bogus just because i_blocks is
non-zero.  The i_blocks field could get adjusted later, and if this
happens it will confuse the e2fsck_process_bad_inode() in pass 2.  In
practice true garbage inodes will have random non-zero in
i_blocks[4..15], so there's no point doing the check for an illegal
i_blocks value.

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