From owner-freebsd-current@FreeBSD.ORG Wed Aug 10 05:54:20 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9DE5516A488 for ; Wed, 10 Aug 2005 05:53:54 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5885E44472 for ; Tue, 9 Aug 2005 22:40:33 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j79MeWv3019737; Tue, 9 Aug 2005 15:40:32 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j79MeW7d019736; Tue, 9 Aug 2005 15:40:32 -0700 Date: Tue, 9 Aug 2005 15:40:32 -0700 From: Brooks Davis To: Jeremie Le Hen Message-ID: <20050809224032.GC15004@odin.ac.hmc.edu> References: <20050809214330.GZ45385@obiwan.tataz.chchile.org> <20050809215939.GA15004@odin.ac.hmc.edu> <20050809220526.GD45385@obiwan.tataz.chchile.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+xNpyl7Qekk2NvDX" Content-Disposition: inline In-Reply-To: <20050809220526.GD45385@obiwan.tataz.chchile.org> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: drvince@anonymnet.net, freebsd-current@freebsd.org Subject: Re: More into /etc/rc.d/jail X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Aug 2005 05:54:21 -0000 --+xNpyl7Qekk2NvDX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 10, 2005 at 12:05:26AM +0200, Jeremie Le Hen wrote: > Hi Brooks, >=20 > > > This was recently discussed in some thread. The problem with this > > > approach is that file backed md(4) devices are too slow to make it > > > standard. This is why this won't go into FreeBSD, IMHO. > >=20 > > Nonsense. Integrating support for mounting file backed MD file systems > > at boot would be quite logical even if md(4) devices are slow. In a > > large portion of cases, the overhead isn't relevent compared to the > > administrative freedom granted by using files instead of partitions. >=20 > Ok. Then Stefan Bethke's script (see his mail in this thread) might be > a better solution since it is a more generic. However it is not > explicitely bound to jails has initially requested, so a note in jail(8) > manpage would be worth in this case. I'm of two minds about a more generic solution. On hand jails aren't the only logical consumers of file backed mds. On the other hand, there's a fair bit of value in being able to start and stop a jail with "/etc/rc.d/jail start|stop ". The answer here might be to have an mdmount (or something) script that runs fairly early in the boot process, but also supports a "mdmount start|stop " form. Code could then be hooked into the jail script to use that to mount and unmount jail drives during the start/stop process. I'm not sure what hte best approach is. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --+xNpyl7Qekk2NvDX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFC+TDeXY6L6fI4GtQRAvRRAJ9Pac+jJf7wY3foUgZ76WYubcnPPQCeO79V /8sJpTUFFgDzoXRwM85BuTQ= =PT4J -----END PGP SIGNATURE----- --+xNpyl7Qekk2NvDX--