From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 13 20:43:39 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 39A3616A403; Fri, 13 Oct 2006 20:43:39 +0000 (UTC) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0250543D45; Fri, 13 Oct 2006 20:43:38 +0000 (GMT) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.13.7/8.13.4) with ESMTP id k9DKhcBp027126; Fri, 13 Oct 2006 13:43:38 -0700 (PDT) Received: (from dillon@localhost) by apollo.backplane.com (8.13.7/8.13.4/Submit) id k9DKhcUY027125; Fri, 13 Oct 2006 13:43:38 -0700 (PDT) Date: Fri, 13 Oct 2006 13:43:38 -0700 (PDT) From: Matthew Dillon Message-Id: <200610132043.k9DKhcUY027125@apollo.backplane.com> To: Ruslan Ermilov References: <20061013201220.GG28074@rambler-co.ru> Cc: hackers@freebsd.org Subject: Re: VBAD vnodes? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Oct 2006 20:43:39 -0000 :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