| From | Sent On | Attachments |
|---|---|---|
| Chuck Robey | Oct 27, 1999 7:03 am | |
| Poul-Henning Kamp | Oct 28, 1999 12:09 am | |
| Garrett Wollman | Oct 28, 1999 7:52 am | |
| Greg Lehey | Oct 28, 1999 8:06 am | |
| David O'Brien | Oct 28, 1999 8:53 am | |
| Garrett Wollman | Oct 28, 1999 8:54 am | |
| Dan Nelson | Oct 28, 1999 10:35 am | |
| David O'Brien | Oct 28, 1999 10:39 am |
| Subject: | Re: lsof + namecache | |
|---|---|---|
| From: | Dan Nelson (dnel...@emsphone.com) | |
| Date: | Oct 28, 1999 10:35:52 am | |
| List: | org.freebsd.freebsd-current | |
In the last episode (Oct 28), Garrett Wollman said:
<<On Thu, 28 Oct 1999 08:54:02 -0700, "David O'Brien" <obr...@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 dnel...@emsphone.com
To Unsubscribe: send mail to majo...@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message





