From owner-freebsd-fs@FreeBSD.ORG Fri Dec 14 14:21:29 2007 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 52BD216A418 for ; Fri, 14 Dec 2007 14:21:29 +0000 (UTC) (envelope-from lgusenet@be-well.ilk.org) Received: from be-well.ilk.org (dsl092-078-145.bos1.dsl.speakeasy.net [66.92.78.145]) by mx1.freebsd.org (Postfix) with ESMTP id 1AA5813C474 for ; Fri, 14 Dec 2007 14:21:29 +0000 (UTC) (envelope-from lgusenet@be-well.ilk.org) Received: from Lowell-Desk.lan (Lowell-Desk.lan [172.30.250.6]) by be-well.ilk.org (Postfix) with ESMTP id 9242F28430; Fri, 14 Dec 2007 09:03:45 -0500 (EST) Received: by Lowell-Desk.lan (Postfix, from userid 1147) id 3FEE21CC30; Fri, 14 Dec 2007 09:03:45 -0500 (EST) To: moonshade@pnhz.kz (Denis Eremenko) References: <1197437356.5183.24.camel@abyss.pnhz.kz> From: Lowell Gilbert Date: Fri, 14 Dec 2007 09:03:45 -0500 In-Reply-To: <1197437356.5183.24.camel@abyss.pnhz.kz> (Denis Eremenko's message of "Wed\, 12 Dec 2007 11\:29\:16 +0600") Message-ID: <44mysdjrum.fsf@Lowell-Desk.lan> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-fs@freebsd.org Subject: Re: fstat and filenames X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Dec 2007 14:21:29 -0000 moonshade@pnhz.kz (Denis Eremenko) writes: > Why fstat so secretive about file names and unix domain sockets? With respect to file names, you need to remember that there may not be a unique answer. A file handle's metadata doesn't keep information about how it was opened, just the inode. That inode could belong to multiple directory entries, or none -- this is why, as the fstat(1) manual points out, "there is no mapping from an open file back to the directory entry that was used to open that file." As far as unix domain sockets, I don't understand the question. Sorry. Be well.