On 05/ 4/10 12:39 AM, casper....@sun.com wrote:
Its worse than that -- unless the reference is in kernel memory, there
is no reference on disk that goes backwards from inode to path name.
find (see below) is about the only way that is guaranteed to work -- and
of course that only finds inodes that actually *have* an active
pathname. (unlink(2) is sometimes used to leave a scratch file without
a name in the filesystem.)
Except for directories, of course (there is sufficient information to get
from the inode number to the pathname)
If you know that the inode number and the directory in which to search,
then yes, you can find the inode there. Its still a search though, just
a constrained one.
Or is there some other technique that you're talking about that I'm not
aware of?
- Garrett
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code