From owner-freebsd-hackers Mon Nov 15 12:38:23 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (Postfix) with ESMTP id 76228150F0 for ; Mon, 15 Nov 1999 12:38:20 -0800 (PST) (envelope-from julian@whistle.com) Received: from current1.whiste.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.9.1a/8.9.1) with ESMTP id MAA14432; Mon, 15 Nov 1999 12:38:11 -0800 (PST) Date: Mon, 15 Nov 1999 12:38:10 -0800 (PST) From: Julian Elischer To: Dan Seguin Cc: FreeBSD Hackers Subject: Re: Vnodes and Pathnames In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG you can for VDIR as the getcwd call does so, but not for VREG becasue you don't know the directory entry that you used to get to it. (You could look in the name cache using a reverse lookup, but I don't know that you are guaranteed of success.) PHK may have more to say on this topic. On Mon, 15 Nov 1999, Dan Seguin wrote: > > > Hello Gurus, > > > Is there any way of getting filepath information from a vnode? What I'm > looking for is pathname info for VDIR and VREG types, sort of a reverse > namei(). > > Thanks! > > > > -------------------------------------------------------------------------------- > Dan Seguin Texar Software, Corporation. > > The trouble with doing something right the first time is that nobody > appreciates how difficult it was. > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message