The attached patch adds a metadata dump and restore command to xfs_db. A script is also supplied called xfs_metadata to make it simpler to generate a metadump file from the command line. The purpose of this feature is to allow a user with a corrupted and/or unrepairable filesystem to generate a compact metadata only image that is small and compressable that can easily be transferred to us for analysis. The command also supports output to stdout, so can be used in the following fashion: # xfs_metadump /dev/foo - | bzip2 > /tmp/foo.bz2 A man page update for xfs_db and a new man page for xfs_metadump will be created before this is checked in. I will also investigate a "name obfuscation" option that works with the hash entries in directories and extended attributes. This would be a future enhancement that won't make this patch. Regards, Barry.