Hi all, Add the ability to regenerate inode fork mappings if the rmapbt otherwise looks ok. 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 xfsprogs git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=repair-rebuild-forks --- include/xfs_trans.h | 3 libxfs/libxfs_api_defs.h | 12 + libxfs/trans.c | 48 ++++ repair/Makefile | 2 repair/agbtree.c | 2 repair/bmap_repair.c | 602 ++++++++++++++++++++++++++++++++++++++++++++++ repair/bmap_repair.h | 13 + repair/bulkload.c | 167 +++++++++++++ repair/bulkload.h | 17 + repair/dino_chunks.c | 5 repair/dinode.c | 206 ++++++++++------ repair/dinode.h | 7 - repair/rmap.c | 2 repair/rmap.h | 1 14 files changed, 1006 insertions(+), 81 deletions(-) create mode 100644 repair/bmap_repair.c create mode 100644 repair/bmap_repair.h