Re: vode to pathname
From: Dag-Erling Smørgrav (des_at_des.no)
Date: 08/24/05
- Previous message: kylin: "Enumerating devices and hardware conf from userland"
- In reply to: Kamal R. Prasad: "vode to pathname"
- Next in thread: Robert Watson: "Re: vode to pathname"
- Reply: Robert Watson: "Re: vode to pathname"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: kamalp@acm.org Date: Wed, 24 Aug 2005 14:54:08 +0200
"Kamal R. Prasad" <kamalpr@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@des.no _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
- Previous message: kylin: "Enumerating devices and hardware conf from userland"
- In reply to: Kamal R. Prasad: "vode to pathname"
- Next in thread: Robert Watson: "Re: vode to pathname"
- Reply: Robert Watson: "Re: vode to pathname"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|