xfs
[Top] [All Lists]

[PATCH] XFS metadata dump feature added to xfs_db

To: <xfs@xxxxxxxxxxx>
Subject: [PATCH] XFS metadata dump feature added to xfs_db
From: "Barry Naujok" <bnaujok@xxxxxxxxxxxxxxxxx>
Date: Tue, 13 Feb 2007 17:44:07 +1100
Sender: xfs-bounce@xxxxxxxxxxx
Thread-index: AcdPOlwRzUFCofFrRDCRRgT+1aQrdA==
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.


Attachment: xfs_metadump.patch
Description: Binary data

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] XFS metadata dump feature added to xfs_db, Barry Naujok <=