From owner-freebsd-current Sun Mar 11 12:16:16 2001 Delivered-To: freebsd-current@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 9240137B718 for ; Sun, 11 Mar 2001 12:16:14 -0800 (PST) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id f2BKDb914593; Sun, 11 Mar 2001 12:13:37 -0800 (PST) Date: Sun, 11 Mar 2001 12:13:37 -0800 From: Alfred Perlstein To: Poul-Henning Kamp 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? Message-ID: <20010311121337.J18351@fw.wintelcom.net> References: <45958.984340929@critter> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <45958.984340929@critter>; from phk@critter.freebsd.dk on Sun, Mar 11, 2001 at 09:02:09PM +0100 X-all-your-base: are belong to us. Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Poul-Henning Kamp [010311 12:02] wrote: > In message , Matthew Jacob writes: > > > >> Lastly make_dev_alias() is undocumented. > > Right, just like most of the rest of the kernel. > > >Really? That's a deficiency. It should be. > > Yes, ideally, yes. The problem with make_dev_alias() not being documented is that it would have been an effort to figure out if duplicate make_dev_alias() calls were idempotent, done with refcounts or a good way to panic your machine. There's also no destroy_dev_alias() that I can see. So when vinum goes away I didn't realize how one unpopulates the /dev/vinum/ tree. 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. 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; -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message