Hi all, Refactor the parts of mkfs and xfs_repair that open-code the process of mapping disk space into files and writing data into them. This will help primarily with resetting of the realtime metadata, but is also used for protofiles. 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=bmap-utils --- include/libxfs.h | 6 +- libxfs/util.c | 103 +++++++++++++++++++++++------ mkfs/proto.c | 136 ++++++++++---------------------------- repair/phase6.c | 194 +++++++++--------------------------------------------- 4 files changed, 154 insertions(+), 285 deletions(-)