VBAD vnodes?
Matthew Dillon
dillon at apollo.backplane.com
Fri Oct 13 13:43:39 PDT 2006
:Hi there,
:
:This has been noticed on all 5.x, 6.x, and 7.0 systems around
:here:
:
:adjkerntz and xterm processes have VBAD type vnodes attached
:to some of their descriptors. What this is supposed to mean?
:
:$ fstat | grep -w bad
:root xterm 976 6 - - bad -
:...
:
:On RELENG_4, it's "s/bad/none/".
:
:Cheers,
:
:Ruslan Ermilov
These are almost certainly descriptors whos vnodes have been
revoked with revoke(). This most commonly occurs on tty (or pty)
descriptors. For example, if you logout of a tty session
with background processes running, the tty is revoked so
it can be reused and so the processes still running cannot mess
around with someone else who reuses the tty.
Here is an example:
shell1# xterm
(from xterm)
shell2# sleep 300 &
[1] 38290
shell2# exit
shell1# fstat -p 38290
USER CMD PID FD PATH INUM MODE SZ|DV R/W
dillon sleep 38290 root / 2 drwxr-xr-x 1024 r
dillon sleep 38290 wd /home/dillon 224000 drwxr-xr-x 6144 r
dillon sleep 38290 text /bin/sleep 10652 -r-xr-xr-x 101344 r
dillon sleep 38290 0 - - none -
dillon sleep 38290 1 - - none -
dillon sleep 38290 2 - - none -
-Matt
More information about the freebsd-hackers
mailing list