Date: Sun, 11 Mar 2001 21:23:11 +0100 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: Alfred Perlstein <bright@wintelcom.net> Cc: mjacob@feral.com, Dag-Erling Smorgrav <des@ofug.org>, "Niels Chr. Bank-Pedersen" <ncbp@bank-pedersen.dk>, current@FreeBSD.org, Greg Lehey <grog@lemis.com> Subject: Re: how's vinum these days with DEVFS? Message-ID: <46116.984342191@critter> In-Reply-To: Your message of "Sun, 11 Mar 2001 12:13:37 PST." <20010311121337.J18351@fw.wintelcom.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46116.984342191>
