Date: Wed, 24 Aug 2005 14:54:08 +0200 From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) To: kamalp@acm.org Cc: freebsd-hackers@freebsd.org Subject: Re: vode to pathname Message-ID: <867jeb8phr.fsf@xps.des.no> In-Reply-To: <20050824103243.47160.qmail@web52710.mail.yahoo.com> (Kamal R. Prasad's message of "Wed, 24 Aug 2005 03:32:43 -0700 (PDT)") References: <20050824103243.47160.qmail@web52710.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
"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 --=20 Dag-Erling Sm=F8rgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?867jeb8phr.fsf>