]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: improve checking of existing rmap and refcount btrees xfsprogs-5.16-fixes_2022-01-19
authorDarrick J. Wong <djwong@kernel.org>
Thu, 6 Jan 2022 22:13:24 +0000 (14:13 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 20 Jan 2022 00:02:53 +0000 (16:02 -0800)
commitb263b6fc14e20e830c6551175b84e13feeaf9368
tree4a2482b57613265454bc7ec4a0149e5f363bcab2
parent068b4c6f637a586df894aff8a4453e5d1f195d09
xfs_repair: improve checking of existing rmap and refcount btrees

There are a few deficiencies in the xfs_repair functions that check the
existing reverse mapping and reference count btrees.  First of all, we
don't report corruption or IO errors if we can't read the ondisk
metadata.  Second, we don't consistently warn if we cannot allocate
memory to perform the check.

Add the missing warnings, and simplify the calling convention since we
don't need the extra layer of do_error logging in phase4.c.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
repair/phase4.c
repair/rmap.c
repair/rmap.h