vode to pathname
Dag-Erling Smørgrav
des at des.no
Wed Aug 24 12:54:14 GMT 2005
"Kamal R. Prasad" <kamalpr at yahoo.com> writes:
> So the question is, how do I get hold of pathname given
> vnode*/(inode, devno, generation no) -without relying on the name
> cache (on freebsd)?
You can't. The semantics of Unix file systems are such that the
mapping from file name to file is one-way. Furthermore, a file can be
associated with more than one file name, or even none at all (if it
has been unlinked but is still held open by a process).
DES
--
Dag-Erling Smørgrav - des at des.no
More information about the freebsd-hackers
mailing list