In the last episode (Oct 28), Garrett Wollman said:
> <<On Thu, 28 Oct 1999 08:54:02 -0700, "David O'Brien" <[EMAIL PROTECTED]> 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
[EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message