From owner-freebsd-hackers Wed Jan 23 0:18:28 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailhub.fokus.gmd.de (mailhub.fokus.gmd.de [193.174.154.14]) by hub.freebsd.org (Postfix) with ESMTP id 6FAE437B41A for ; Wed, 23 Jan 2002 00:18:19 -0800 (PST) Received: from beagle (beagle [193.175.132.100]) by mailhub.fokus.gmd.de (8.11.6/8.11.6) with ESMTP id g0N8IFR26486; Wed, 23 Jan 2002 09:18:15 +0100 (MET) Date: Wed, 23 Jan 2002 09:18:15 +0100 (CET) From: Harti Brandt To: Hyong-Youb Kim Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: uniquely identifying a file In-Reply-To: Message-ID: <20020123091619.W86919-100000@beagle.fokus.gmd.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Tue, 22 Jan 2002, Hyong-Youb Kim wrote: HK> HK>What would be a unique id of a file on a local system? Is the full path of HK>a file the only way to uniquely identify a file? Is there any place I can HK>get some info on the funtion textvp_fullpath? Thanks. Posix requires that a file is uniqualy identified by the st_dev, st_ino pair from struct stat. Under FreeBSD this will be true for local file systems. Dunno about NFS. See man 2 stat. harti -- harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.fhg.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message