From owner-freebsd-current Sun Mar 11 14:38:58 2001 Delivered-To: freebsd-current@freebsd.org Received: from phk.freebsd.dk (phk.freebsd.dk [212.242.86.136]) by hub.freebsd.org (Postfix) with ESMTP id 4D81737B750 for ; Sun, 11 Mar 2001 14:38:47 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by phk.freebsd.dk (8.9.3/8.9.3) with ESMTP id XAA08268; Sun, 11 Mar 2001 23:38:32 +0100 (CET) (envelope-from phk@critter.freebsd.dk) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.1/8.11.1) with ESMTP id f2BKNBV46118; Sun, 11 Mar 2001 21:23:11 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Alfred Perlstein Cc: mjacob@feral.com, Dag-Erling Smorgrav , "Niels Chr. Bank-Pedersen" , current@FreeBSD.org, Greg Lehey Subject: Re: how's vinum these days with DEVFS? In-Reply-To: Your message of "Sun, 11 Mar 2001 12:13:37 PST." <20010311121337.J18351@fw.wintelcom.net> Date: Sun, 11 Mar 2001 21:23:11 +0100 Message-ID: <46116.984342191@critter> From: Poul-Henning Kamp Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <20010311121337.J18351@fw.wintelcom.net>, Alfred Perlstein writes: >What's up with devfs not gc'ing itself? Ie, after a directory >becomes empty it seems to still exist within the devfs namespace >instead of disappearing. That was a deliberate decision, removing a directory(-inode) which might have a valid vnode is kind of a nasty thing to attempt. >Since you guys are in docco mode, you might as well document how one >detects a devfs system in a running system. There's an example >in the vinum(8) source: > > if (sysctlbyname("vfs.devfs.generation", NULL, NULL, NULL, 0) == 0) > devfs_is_active = 1; > else > devfs_is_active = 0; Which is the correct and blessed way to find out. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message