[PATCHSET v24.0 0/2] xfs: detect incorrect gaps in rmap btree

Darrick J. Wong
2022-12-30T22:26:47Z

Hi all,

Following in the theme of the last two patchsets, this one strengthens
the rmap btree record checking so that scrub can count the number of
space records that map to a given owner and that do not map to a given
owner. This enables us to determine exclusive ownership of space that
can't be shared.

If you're going to start using this mess, you probably ought to just
pull from my git trees, which are linked below.

This is an extraordinary way to destroy everything. Enjoy!
Comments and questions are, as always, welcome.

--D

kernel git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=scrub-detect-rmapbt-gaps

xfsprogs git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=scrub-detect-rmapbt-gaps
---
fs/xfs/libxfs/xfs_rmap.c | 198 ++++++++++++++++++++++++++++++++--------------
fs/xfs/libxfs/xfs_rmap.h | 18 +++-
fs/xfs/scrub/agheader.c | 10 +-
fs/xfs/scrub/bmap.c | 14 +++
fs/xfs/scrub/btree.c | 2
fs/xfs/scrub/ialloc.c | 4 -
fs/xfs/scrub/inode.c | 2
fs/xfs/scrub/rmap.c | 45 ++++++----
fs/xfs/scrub/scrub.h | 2
9 files changed, 198 insertions(+), 97 deletions(-)