From owner-freebsd-arch Sat Jul 15 4:59:29 2000 Delivered-To: freebsd-arch@freebsd.org Received: from ywing.creative.net.au (ywing.creative.net.au [203.56.168.34]) by hub.freebsd.org (Postfix) with ESMTP id 95BEB37B5FF; Sat, 15 Jul 2000 04:59:25 -0700 (PDT) (envelope-from adrian@ywing.creative.net.au) Received: (from adrian@localhost) by ywing.creative.net.au (8.9.3/8.9.3) id OAA27302; Sat, 15 Jul 2000 14:06:14 +0200 (CEST) (envelope-from adrian) Date: Sat, 15 Jul 2000 14:06:14 +0200 From: Adrian Chadd To: Julian Elischer Cc: Kelly Yancey , Robert Watson , Dan Nelson , Warner Losh , Adrian Chadd , freebsd-arch@FreeBSD.ORG Subject: Re: SysctlFS Message-ID: <20000715140614.A22865@ywing.creative.net.au> References: <397034E4.794BDF32@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <397034E4.794BDF32@elischer.org>; from julian@elischer.org on Sat, Jul 15, 2000 at 02:54:44AM -0700 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Jul 15, 2000, Julian Elischer wrote: > Kelly Yancey wrote: > > > > On Sat, 15 Jul 2000, Robert Watson wrote: > > > > > > > Maybe I am missing something obvious, but wouldn't a mount option to > > automatically export a given filesystem to all jails do the trick? Fundamental > > filesystems like procfs and devfs would typically be mounted with the option, > > while others were left to per-jail individual mounts. > > That is, of course, assuming we had room for more MNT_* flags. > > > jails are not 'mounted so there is no specific 'moment' > when you should 'make your automatic mounts. > anyhow you may have 1000 jails set up on your filesystems > do you want to see 2000 filesystems in your mount list? Ok, Whilst trudging through the vfs and various filesystem codes, it seems to me that things like procfs/devfs which are needed inside a jail/chroot environment can be handled with *drumroll* a stacking layer of sorts. This type of stacking layer would be a nullfs layer of sorts, except that it is an implicit mount rather than an explicit mount. That way, all processes which talk to say, /dev, would go through this layer which pretty much does a nullfs thing and doesn't require you to have a devfs/ procfs/kernfs/[/usr/lib]/ mounted everywhere. Ok, so it has shades of plan9. I didn't want to rant because right now I have absolutely 0.00% code to demonstrate my idea, but I thought I might as well throw it into the works. Adrian -- Adrian Chadd Build a man a fire, and he's warm for the rest of the evening. Set a man on fire and he's warm for the rest of his life. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message