]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: log when buffers fail CRC checks even if we just recompute it
authorDarrick J. Wong <djwong@kernel.org>
Sun, 2 Jun 2024 23:32:50 +0000 (16:32 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 3 Jun 2024 18:37:42 +0000 (11:37 -0700)
commit017762cce2da17b83fdc9192dd6e64c0fef7d09c
tree9ccf6704e88772fe604d8269a0ad43201d995b5e
parent2025aa7a29e60c89047711922c1340a8b3c9d99e
xfs_repair: log when buffers fail CRC checks even if we just recompute it

We should always log metadata block CRC validation errors, even if we
decide that the block contents are ok and that we'll simply recompute
the checksum.  Without this patch, xfs_repair -n won't say anything
about crc errors on these blocks.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
repair/attr_repair.c
repair/da_util.c
repair/dir2.c