Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Oct 1999 12:36:14 -0500
From:      Dan Nelson <dnelson@emsphone.com>
To:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Cc:        obrien@FreeBSD.ORG, current@FreeBSD.ORG
Subject:   Re: lsof + namecache
Message-ID:  <19991028123614.A73271@dan.emsphone.com>
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
References:  <Pine.BSF.4.10.9910270959400.29073-100000@picnic.mat.net> <312.941094594@critter.freebsd.dk> <199910281452.KAA91520@khavrinen.lcs.mit.edu> <19991028085402.A47498@dragon.nuxi.com> <199910281554.LAA91800@khavrinen.lcs.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Oct 28), Garrett Wollman said:
> <<On Thu, 28 Oct 1999 08:54:02 -0700, "David O'Brien" <obrien@FreeBSD.ORG> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991028123614.A73271>