Hi all, In this series, online repair gains the ability to rebuild data and attr fork mappings from the reverse mapping information. It is at this point where we reintroduce the ability to reap file extents. Repair of CoW forks is a little different -- on disk, CoW staging extents are owned by the refcount btree and cannot be mapped back to individual files. Hence we can only detect staging extents that don't quite look right (missing reverse mappings, shared staging extents) and replace them with fresh allocations. 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-file-mappings xfsprogs git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=repair-file-mappings fstests git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfstests-dev.git/log/?h=repair-file-mappings --- tests/xfs/746 | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++++ tests/xfs/746.out | 2 + tests/xfs/807 | 37 +++++++++++++++++++++++ tests/xfs/807.out | 2 + tests/xfs/808 | 39 ++++++++++++++++++++++++ tests/xfs/808.out | 2 + tests/xfs/828 | 38 ++++++++++++++++++++++++ tests/xfs/828.out | 2 + tests/xfs/829 | 39 ++++++++++++++++++++++++ tests/xfs/829.out | 2 + tests/xfs/840 | 72 +++++++++++++++++++++++++++++++++++++++++++++ tests/xfs/840.out | 3 ++ tests/xfs/846 | 39 ++++++++++++++++++++++++ tests/xfs/846.out | 2 + 14 files changed, 364 insertions(+) create mode 100755 tests/xfs/746 create mode 100644 tests/xfs/746.out create mode 100755 tests/xfs/807 create mode 100644 tests/xfs/807.out create mode 100755 tests/xfs/808 create mode 100644 tests/xfs/808.out create mode 100755 tests/xfs/828 create mode 100644 tests/xfs/828.out create mode 100755 tests/xfs/829 create mode 100644 tests/xfs/829.out create mode 100755 tests/xfs/840 create mode 100644 tests/xfs/840.out create mode 100755 tests/xfs/846 create mode 100644 tests/xfs/846.out