[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: A direct way to find hard links?



Adam Funk wrote:
> For a given, specific path/file X, I know that X is one of the pointers to
> inode Y, and I want to find the other path/filenames that point to the same
> inode Y.  Is there any efficient way to make a command like the following?
>   $ list_all_hard_links /path/to/x

Oh, I see. Well, no idea. I tried ncheck in debugfs but that is slow too
and didn't even return all the hardlinks.

> I strongly suspect that using something based on this
>   $ ls -li /path/to/x
>   $ find /try/this/path -inum 1234
> is the only way.

I guess so too.

Andro

-- 
Andrey Andreev
University of Helsinki
Dept. of Computer Science



Reply to: