]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: force not-so-bad bmbt blocks back through the verifier
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 2 Sep 2015 22:43:07 +0000 (08:43 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 2 Sep 2015 22:43:07 +0000 (08:43 +1000)
commit43ba186145658fe8337e237bb5b5e72c240c49d5
treef9264332995e48a568e8fd5b58eb7c95bc5b80b2
parent1c8e2f033c6862a2aa429e1ed4475540089a9386
xfs_repair: force not-so-bad bmbt blocks back through the verifier

If during prefetch we encounter a bmbt block that fails the CRC check
due to corruption in the unused part of the block, force the buffer
back through the non-prefetch verifiers later so that the CRC is
updated.  Otherwise, the bad checksum goes unfixed and the kernel will
still flag the bmbt block as invalid.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
repair/prefetch.c