Date: Wed, 30 Nov 2005 17:34:57 +1300 From: Jonathan Chen <jonc@chen.org.nz> To: Wojciech Puchar <wojtek@tensor.3miasto.net> Cc: freebsd-questions@freebsd.org Subject: Re: fstat can't.. Message-ID: <20051130043457.GB5078@osiris.chen.org.nz> In-Reply-To: <20051129192416.L78413@chylonia.3miasto.net> References: <20051129192416.L78413@chylonia.3miasto.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 29, 2005 at 07:27:59PM +0100, Wojciech Puchar wrote:
> in NetBSD i've used fstat like this
> 
> fstat <file>
> 
> and it showed me what process uses that file.
> 
> with FreeBSD 6.0 manual says it can be used that way, but it ALWAYS gives 
> empty output for normal files, while works fine for /dev/* pseudofiles.
> both as user and root
Perhaps the process isn't using the file? It works fine for stuff in
/var/log, eg:
osiris-log,5:33pm> fstat maillog
USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME
root     syslogd      342   15 /var      94371 -rw-r-----  7437461 w  maillog
Just as I expect.
-- 
Jonathan Chen <jonc@chen.org.nz>
----------------------------------------------------------------------
                                         "Nyuck, nyuck, nyuck" - Curly
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051130043457.GB5078>
