From owner-freebsd-current Thu Oct 28 10:36:30 1999 Delivered-To: freebsd-current@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 5D47114D10; Thu, 28 Oct 1999 10:36:28 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id MAA73405; Thu, 28 Oct 1999 12:36:14 -0500 (CDT) (envelope-from dan) Date: Thu, 28 Oct 1999 12:36:14 -0500 From: Dan Nelson To: Garrett Wollman Cc: obrien@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: lsof + namecache Message-ID: <19991028123614.A73271@dan.emsphone.com> References: <312.941094594@critter.freebsd.dk> <199910281452.KAA91520@khavrinen.lcs.mit.edu> <19991028085402.A47498@dragon.nuxi.com> <199910281554.LAA91800@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <199910281554.LAA91800@khavrinen.lcs.mit.edu>; from wollman@khavrinen.lcs.mit.edu on Thu, Oct 28, 1999 at 11:54:44AM -0400 X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Oct 28), Garrett Wollman said: > < said: > > > fstat(1) does not have the functionality (that is now missing) that > > people have come to expect from LSOF. > > ...which is? The ability to map a filedescriptor with a filesystem name by digging inside the kernel's namecache: (emssrv5:root) /root># fstat -p 1 USER CMD PID FD MOUNT INUM MODE SZ|DV R/W root init 1 wd / 2 drwxr-xr-x 1024 r root init 1 text / 153791 -r-x------ 233472 r (emssrv5:root) /root># lsof -p 1 COMMAND PID USER FD TYPE DEVICE SIZE/OFF INODE NAME init 1 root cwd VDIR 4,131072 1024 2 / init 1 root txt VREG 4,131072 233472 153791 /sbin/init (emssrv5:root) /root># -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message