Date: Fri, 14 Dec 2007 09:03:45 -0500 From: Lowell Gilbert <lgusenet@be-well.ilk.org> To: moonshade@pnhz.kz (Denis Eremenko) Cc: freebsd-fs@freebsd.org Subject: Re: fstat and filenames Message-ID: <44mysdjrum.fsf@Lowell-Desk.lan> In-Reply-To: <1197437356.5183.24.camel@abyss.pnhz.kz> (Denis Eremenko's message of "Wed\, 12 Dec 2007 11\:29\:16 %2B0600") References: <1197437356.5183.24.camel@abyss.pnhz.kz>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44mysdjrum.fsf>