From owner-freebsd-arch@FreeBSD.ORG Wed Jan 14 13:27:54 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 959FC16A4CE for ; Wed, 14 Jan 2004 13:27:54 -0800 (PST) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3ABA43D58 for ; Wed, 14 Jan 2004 13:27:41 -0800 (PST) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.10/8.12.3) with ESMTP id i0ELRcaT010245; Wed, 14 Jan 2004 13:27:38 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.10/8.12.3/Submit) id i0ELRcaD010244; Wed, 14 Jan 2004 13:27:38 -0800 Date: Wed, 14 Jan 2004 13:27:38 -0800 From: Brooks Davis To: Poul-Henning Kamp Message-ID: <20040114212736.GE4974@Odin.AC.HMC.Edu> References: <40059DFB.9000904@mail.ru> <29371.1074115322@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZRyEpB+iJ+qUx0kp" Content-Disposition: inline In-Reply-To: <29371.1074115322@critter.freebsd.dk> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu cc: freebsd-arch@freebsd.org cc: Vladimir Dozen Subject: Re: Request for Comments: libarchive, bsdtar X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jan 2004 21:27:54 -0000 --ZRyEpB+iJ+qUx0kp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 14, 2004 at 10:22:02PM +0100, Poul-Henning Kamp wrote: > In message <40059DFB.9000904@mail.ru>, Vladimir Dozen writes: > >ehlo. > > > >> If you become a bored person requiring entertainment, it might be quite > >> interesting to create a read-only tarfs for use as a root file system > >> loaded in an md device. > > > > I'm just curious: is it possible to write a GEOM class to mount > > a given tar as a FS in R/O mode (using libarchive, I mean)? >=20 > That would be a filesystem, not a GEOM class. >=20 > And yes it would be. Part of the trouble is directory searches > where you need to build some kind of index in order to not have > to run through sequentially all the time. For cases where you know you're going to be using the archive as a file system, you might be able to cheat a bit by creating a special file containing an efficent index of the contents of the archive. That would let you avoid keeping everything in memory and rescanning the disk constantly. -- 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 --ZRyEpB+iJ+qUx0kp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFABbRHXY6L6fI4GtQRAvnLAKChcsMbh8lVpdetpzan8zMB4Z04JQCgr1Fw tKTw/3N6A7dSTWPR70QU2ps= =vSXp -----END PGP SIGNATURE----- --ZRyEpB+iJ+qUx0kp--