xfs
[Top] [All Lists]

Re: xfs_ncheck gives outdated and partial result

To: "Daniele P." <daniele@xxxxxxxxxxxx>
Subject: Re: xfs_ncheck gives outdated and partial result
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Fri, 20 Oct 2006 12:16:35 -0500
Cc: xfs@xxxxxxxxxxx
In-reply-to: <200610200858.08718.daniele@interline.it>
References: <200610200858.08718.daniele@interline.it>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Thunderbird 1.5.0.7 (X11/20060913)
Daniele P. wrote:
> Hi All,
> I'm here to ask a couple of question regarding xfs_ncheck.
> I'm using xfs_db version 2.6.20
> 
> The first question is:
> Is it right that I have to unmount/mount the filesystem before
> using it (1), or to get the partial right (3) answer?
> And why it's print only the first file name for inodes pointed
> by multiple files (2)?

I think Lachlan had good answers to your questions... I'm curious, are
you using xfs_ncheck on a mounted filesystem for any particular reason?
 It seems that maybe if you are concerned about the out-of-date info on
a mounted filesystem, maybe you are attempting to use this from a script
or something as part of a larger tool, and that may not be a good idea
in general.  xfs_ncheck, a wrapper around xfs_db, reads the block device
directly, and nothing in the kernel guarantees consistency between the
block device address space and the filesystem address space.

-Eric


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