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

[ale] link



On Wed, 2007-04-11 at 14:42 -0400, Cox, Danny wrote:

> You don?t even need to use C or Python.  Use ls ?i to get the inode,
> and find . ?inum <i node number> to find all occurrences of the file.
> As long as you don?t cross filesystems, all will be well.  There?s an
> outside chance that if you DO search across multiple filesystems
> you?ll get files that just happen to have the same inode number.


So, it looks like the find command would be:

find . -inum ${INODE} -xdev

or:

find . -inum ${INODE} -mount

It does seem, though, that this way of doing things would be rather
intensive.  To do it in a program, one would have to check the stat on
every file on the filesystem, which is pretty resource heavy.  I guess
it's not a problem that is encountered often enough to make this type of
thing more efficient?

    -- Mike

--
Michael B. Trausch
                    fd0man at gmail.com
Phone: (404) 592-5746
                          Jabber IM:
                    fd0man at gmail.com
              fd0man at livejournal.com
Demand Freedom!  Use open and free protocols, standards, and software!
-------------- next part --------------
An HTML attachment was scrubbed...

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part