Hi all, Now that we've spent a lot of time reworking common code in online fsck, we're ready to start rebuilding the AG space btrees. This series implements repair functions for the free space, inode, and refcount btrees. Rebuilding the reverse mapping btree is much more intense and is left for a subsequent patchset. The fstests counterpart of this patchset implements stress testing of repair. 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=repair-ag-btrees xfsprogs git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=repair-ag-btrees fstests git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfstests-dev.git/log/?h=repair-ag-btrees --- README | 3 ++ common/fuzzy | 39 +++++++++++++++++++-------- common/rc | 2 + common/xfs | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++ tests/xfs/725 | 37 +++++++++++++++++++++++++ tests/xfs/725.out | 2 + tests/xfs/726 | 37 +++++++++++++++++++++++++ tests/xfs/726.out | 2 + tests/xfs/727 | 38 ++++++++++++++++++++++++++ tests/xfs/727.out | 2 + tests/xfs/728 | 37 +++++++++++++++++++++++++ tests/xfs/728.out | 2 + tests/xfs/729 | 37 +++++++++++++++++++++++++ tests/xfs/729.out | 2 + tests/xfs/730 | 37 +++++++++++++++++++++++++ tests/xfs/730.out | 2 + tests/xfs/731 | 37 +++++++++++++++++++++++++ tests/xfs/731.out | 2 + 18 files changed, 382 insertions(+), 13 deletions(-) create mode 100755 tests/xfs/725 create mode 100644 tests/xfs/725.out create mode 100755 tests/xfs/726 create mode 100644 tests/xfs/726.out create mode 100755 tests/xfs/727 create mode 100644 tests/xfs/727.out create mode 100755 tests/xfs/728 create mode 100644 tests/xfs/728.out create mode 100755 tests/xfs/729 create mode 100644 tests/xfs/729.out create mode 100755 tests/xfs/730 create mode 100644 tests/xfs/730.out create mode 100755 tests/xfs/731 create mode 100644 tests/xfs/731.out