]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
repair: Repair directory block CRC mismatches
authorJan Kara <jack@suse.cz>
Tue, 8 Jul 2014 00:30:28 +0000 (10:30 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 8 Jul 2014 00:30:28 +0000 (10:30 +1000)
commit575010d5caf03b561ad13f43c7b6b7447e63203e
treeefd9c04c56fd5923a0632480ee89216343766744
parentcf0cc348f3a7bb53490f084f9835a3a779c777dd
repair: Repair directory block CRC mismatches

It can happen that just CRC doesn't match for directory blocks. In that
case xfs_repair will just report the error but won't fix anything (as
further checking of the block doesn't reveal any problems). Make sure we
recompute and write out new CRC when we failed verification during
reading.

Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
repair/dir2.c