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 | 2 libxfs/libxfs_api_defs.h | 13 + libxfs/trans.c | 48 +++ repair/Makefile | 2 repair/agbtree.c | 2 repair/bmap_repair.c | 741 ++++++++++++++++++++++++++++++++++++++++++++++ repair/bmap_repair.h | 13 + repair/bulkload.c | 175 +++++++++++ repair/bulkload.h | 19 + repair/dino_chunks.c | 5 repair/dinode.c | 142 ++++++--- repair/dinode.h | 7 repair/rmap.c | 2 repair/rmap.h | 1 14 files changed, 1123 insertions(+), 49 deletions(-) create mode 100644 repair/bmap_repair.c create mode 100644 repair/bmap_repair.h