Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Oct 2006 13:43:38 -0700 (PDT)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        Ruslan Ermilov <ru@freebsd.org>
Cc:        hackers@freebsd.org
Subject:   Re: VBAD vnodes?
Message-ID:  <200610132043.k9DKhcUY027125@apollo.backplane.com>
References:  <20061013201220.GG28074@rambler-co.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
: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
    



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