[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: xfs_ncheck shows only one filename per inode
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@sgi.com