xfs
[Top] [All Lists]

Re: Xfs file system meta information

To: Linux Tard <linuxtard@xxxxxxxxx>
Subject: Re: Xfs file system meta information
From: Eric Sandeen <sandeen@xxxxxxx>
Date: Mon, 10 Oct 2005 09:03:24 -0500
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <20051010043535.27684.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
References: <20051010043535.27684.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716)
Linux Tard wrote:
I'm new to studying XFS file system type.  I'm looking
to dump meta info for file system (including label,
UUID, create date, last mount date, last write date,
size of file system, etc.).  I haven't found a way to
do this using an XFS tool.  I see xfs_admin can print
label and UUID.  But is there a tool to obtain the
creation date, last mount date, last write date, size
of FS, etc.?

kind regards,
-lt

Some of the metadata you request is not stored on the filesystem itself (create date, mount date, etc) - although I've always thought that would be a good idea, it's just never been done.

But you can use the xfs_db tool to explore all of the information that -is- on disk. For starters:

xfs_db -r /dev/device
xfs_db> sb 0
xfs_db> p

will show you all the fields in the primary superblock.

-Eric


<Prev in Thread] Current Thread [Next in Thread>