xfs
[Top] [All Lists]

Re: xfs_ncheck shows only one filename per inode

To: Utz Lehmann <ulehmann@xxxxxxxxxxxxxx>
Subject: Re: xfs_ncheck shows only one filename per inode
From: Steve Lord <lord@xxxxxxx>
Date: 15 May 2002 14:17:01 -0500
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <20020515183016.C9309@de.tecosim.com>
References: <20020515183016.C9309@de.tecosim.com>
Sender: owner-linux-xfs@xxxxxxxxxxx
On Wed, 2002-05-15 at 11:30, Utz Lehmann wrote:
> Hi
> 
> xfs_ncheck shows only one filename per inode, even if there exsist more:
> 
> # ln FILE1 FILE2
> # ls -i FILE*
>     185 FILE1      185 FILE2
> # xfs_ncheck -i 185 /dev/vg00/tmp 
>         185 FILE1
> # xfs_ncheck /dev/vg00/tmp | grep " 185 "
>         185 FILE1
> # rm FILE1
> # xfs_ncheck -i 185 /dev/vg00/tmp 
>         185 FILE2
> # ln FILE2 FILE3 
> # ls -i FILE*
>     185 FILE2      185 FILE3
> # xfs_ncheck -i 185 /dev/vg00/tmp 
>         185 FILE3
> 
> Is this a bug?
> 
> btw: Is it safe to run xfs_ncheck on a mounted fs?

See the man page, it says you can, but might get error messages.
As for the multiple names for an inode, I suspect it is just
written to stop after one name is found.

If you use it without the -i it should report all names, you could
pipe that into grep for your inode number. OK I know that is horribly
inefficient.

Steve

> 
> 
> utz
-- 

Steve Lord                                      voice: +1-651-683-3511
Principal Engineer, Filesystem Software         email: lord@xxxxxxx


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