Whamcloud - gitweb
e2fsck: clear badblocks inode when checksum fails
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 26 Jul 2014 00:35:12 +0000 (17:35 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 27 Jul 2014 23:42:11 +0000 (19:42 -0400)
commit492f901e2d762af001817e2f1e0e8a5fb5c7b607
tree7f0c54bb284f58019f30e78603a3ec3ecf813f19
parenteb89a6287d27d90f10cf7b80da4a5dbd9d1bcd3e
e2fsck: clear badblocks inode when checksum fails

If the badblocks inode fails checksum verification, just clear the
inode and move on.  If we don't do this, we can end up importing a lot
of garbage into the badblocks list, which will then cause fsck to try
to regenerate anything that was sitting atop the supposedly damaged
blocks.  Given that most hardware will remap bad sectors transparently
from ext4, the number of people this could affect adversely is pretty
low.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass1.c