From owner-freebsd-questions@FreeBSD.ORG Wed Nov 30 04:35:02 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36CFA16A41F for ; Wed, 30 Nov 2005 04:35:02 +0000 (GMT) (envelope-from jonc@chen.org.nz) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0FE643D45 for ; Wed, 30 Nov 2005 04:34:59 +0000 (GMT) (envelope-from jonc@chen.org.nz) Received: by chen.org.nz (Postfix, from userid 1000) id 5A8A656423; Wed, 30 Nov 2005 17:34:57 +1300 (NZDT) Date: Wed, 30 Nov 2005 17:34:57 +1300 From: Jonathan Chen To: Wojciech Puchar Message-ID: <20051130043457.GB5078@osiris.chen.org.nz> References: <20051129192416.L78413@chylonia.3miasto.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051129192416.L78413@chylonia.3miasto.net> User-Agent: Mutt/1.4.2.1i Cc: freebsd-questions@freebsd.org Subject: Re: fstat can't.. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2005 04:35:02 -0000 On Tue, Nov 29, 2005 at 07:27:59PM +0100, Wojciech Puchar wrote: > in NetBSD i've used fstat like this > > fstat > > 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 ---------------------------------------------------------------------- "Nyuck, nyuck, nyuck" - Curly