]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_repair: flag suspect long-format btree blocks
authorDarrick J. Wong <djwong@kernel.org>
Thu, 21 Nov 2024 00:24:53 +0000 (16:24 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 28 Nov 2024 02:33:23 +0000 (18:33 -0800)
commit3758bcfbe490e8b9b4261dfd43f4f77acf9d8b3e
tree0ce75a10308b5c2ed2c857903a55fb9cf5d11043
parent9bd7c72cb1e92d5f980c20894933e331060e809c
xfs_repair: flag suspect long-format btree blocks

Pass a "suspect" counter through scan_lbtree just like we do for
short-format btree blocks, and increment its value when we encounter
blocks with bad CRCs or outright corruption.  This makes it so that
repair actually catches bmbt blocks with bad crcs or other verifier
errors.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
repair/dinode.c
repair/scan.c
repair/scan.h