From owner-freebsd-hackers Wed Jan 23 0:29:20 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.dis.org (dhcp45-21.dis.org [216.240.45.21]) by hub.freebsd.org (Postfix) with ESMTP id F099C37B430 for ; Wed, 23 Jan 2002 00:28:52 -0800 (PST) Received: from mass.dis.org (localhost [127.0.0.1]) by mass.dis.org (8.11.6/8.11.6) with ESMTP id g0N12ad03723; Tue, 22 Jan 2002 17:02:36 -0800 (PST) (envelope-from msmith@mass.dis.org) Message-Id: <200201230102.g0N12ad03723@mass.dis.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Hyong-Youb Kim Cc: freebsd-hackers@freebsd.org Subject: Re: uniquely identifying a file In-reply-to: Your message of "Tue, 22 Jan 2002 17:18:45 CST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 22 Jan 2002 17:02:36 -0800 From: Michael Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > What would be a unique id of a file on a local system? Is the full path of > a file the only way to uniquely identify a file? This depends on the domain within which you need the uniquifier. Note that a single file can make multiple appearances within the directory namespace, so two different paths can refer to the same file. Within the filesystem, the inode number is unique, however you can't (trivially) look a file up by inode number (as that would violate the directory-based permissions scheme). > Is there any place I can > get some info on the funtion textvp_fullpath? Thanks. Read the source. 8) Regards, Mike -- Go where you may, search where you will, roam throughout all the monarchies and despotisms of the Old World, travel through South America, search out every abuse and when you have found the last, lay your facts by the everyday practices of this nation, and you will say with me that, for revolting barbarity and shameless hypocrisy, America reigns without a rival... - Frederic Douglass, Independence Day Address, 1852 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message