Hi all, This series augments the xfs_metadump and xfs_mdrestore utilities to capture the contents of an external log in a metadump, and restore it on the other end. This will enable better debugging analysis of broken filesystems, since it will now be possible to capture external log data. This is a prequisite for the rt groups feature, since we'll also need to capture the rt superblocks written to the rt device. This also means we can capture the contents of external logs for better analysis by support staff. 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=metadump-external-devices fstests git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfstests-dev.git/log/?h=metadump-external-devices --- db/block.c | 103 ++++++++++++++++++++++++ db/io.c | 18 ++++ db/io.h | 2 db/metadump.c | 98 +++++++++++++++++++++++ db/xfs_metadump.sh | 5 + include/xfs_metadump.h | 3 + man/man8/xfs_db.8 | 17 ++++ man/man8/xfs_mdrestore.8 | 8 ++ man/man8/xfs_metadump.8 | 13 ++- mdrestore/xfs_mdrestore.c | 190 ++++++++++++++++++++++++++++++++------------- 10 files changed, 393 insertions(+), 64 deletions(-)