From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 24 12:54:14 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25BB916A41F for ; Wed, 24 Aug 2005 12:54:14 +0000 (GMT) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB03C43D46 for ; Wed, 24 Aug 2005 12:54:13 +0000 (GMT) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 5294A60FE; Wed, 24 Aug 2005 14:53:57 +0200 (CEST) Received: from xps.des.no (des.no [80.203.228.37]) by tim.des.no (Postfix) with ESMTP id 4080960F1; Wed, 24 Aug 2005 14:53:57 +0200 (CEST) Received: by xps.des.no (Postfix, from userid 1001) id 6361F33CA7; Wed, 24 Aug 2005 14:54:08 +0200 (CEST) To: kamalp@acm.org References: <20050824103243.47160.qmail@web52710.mail.yahoo.com> From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) Date: Wed, 24 Aug 2005 14:54:08 +0200 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)") Message-ID: <867jeb8phr.fsf@xps.des.no> User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Tests: ALL_TRUSTED,AWL,BAYES_00 X-Spam-Learn: ham X-Spam-Score: -5.2/3.0 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on tim.des.no Cc: freebsd-hackers@freebsd.org Subject: Re: vode to pathname X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Aug 2005 12:54:14 -0000 "Kamal R. Prasad" 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