From owner-freebsd-hackers Sat Oct 30 20:20:56 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from paradox.nexuslabs.com (cc718001-a.vron1.nj.home.com [24.11.70.21]) by hub.freebsd.org (Postfix) with ESMTP id A57E814CC2 for ; Sat, 30 Oct 1999 20:20:49 -0700 (PDT) (envelope-from cyouse@paradox.nexuslabs.com) Received: from localhost (cyouse@localhost) by paradox.nexuslabs.com (8.9.3/8.9.3) with ESMTP id XAA00592; Sat, 30 Oct 1999 23:19:06 -0400 (EDT) (envelope-from cyouse@paradox.nexuslabs.com) Date: Sat, 30 Oct 1999 23:19:06 -0400 (EDT) From: Chuck Youse To: Borja Marcos Cc: hackers@FreeBSD.ORG Subject: Re: Obtaining the filename for a vnode In-Reply-To: <199910310103.CAA17338@sirius.we.lc.ehu.es> 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 On Sun, 31 Oct 1999, Borja Marcos wrote: > I see (kern_exec.c) I have the vnode of the process > text, but, how can I obtain the filename for the vnode? Is there a > routine in the kernel to do that? Careful here: the UNIX filesystem separates vnodes from directory entries. One can easily map a name in the filesystem to a v-node (via namei() et al.) but was never designed to work the other way around. Unlike most other operating systems (Windows NT, VMS, etc.) there is no one-to-one correspondence between a file on disk and its associated names in the filesystem. Chuck To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message