From owner-freebsd-fs Thu Nov 29 7:29:55 2001 Delivered-To: freebsd-fs@freebsd.org Received: from jazz.viagenie.qc.ca (jazz.viagenie.qc.ca [206.123.31.2]) by hub.freebsd.org (Postfix) with ESMTP id DBD3A37B443 for ; Thu, 29 Nov 2001 07:29:49 -0800 (PST) Received: from classic (boitepostale.viagenie.qc.ca [206.123.31.3]) by jazz.viagenie.qc.ca (Viagenie/8.11.0) with ESMTP id fATFe9a79046; Thu, 29 Nov 2001 10:40:09 -0500 (EST) Date: Thu, 29 Nov 2001 10:32:26 -0500 From: Marc Blanchet To: Alfred Perlstein Cc: freebsd-fs@freebsd.org Subject: Re: tgz filesystem Message-ID: <278520000.1007047945@classic> In-Reply-To: <20011128200416.Q46769@elvis.mu.org> References: <224030000.1006998892@classic> <20011128200416.Q46769@elvis.mu.org> X-Mailer: Mulberry/2.1.1 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org -- mercredi, novembre 28, 2001 20:04:16 -0600 Alfred Perlstein=20 wrote/a =E9crit: > * Marc Blanchet [011128 19:52] wrote: >> Hi, >> - I would like to use a tar-gzip filesystem that mounts a tgz file. The > > This would be nearly useless, a .tgz file is a tar file (which has no = TOC) > in a gzipp'd stream. Meaning that browsing it is pretty much impossible > without extracting the whole thing anyhow. good point. well taken. however, the extraction would only be done during the mount time (with the=20 impact of some significant mount delay before the fs is ready if the file=20 is big and the processor is slow). But, if the fs is not mounted, then the=20 space of the temporary copy is not used, and also it keeps the data in the=20 compressed format. Think about the intent: - right now, I have archives of data in the popular tgz format. to actually = search through it and work on the data without knowing exactly in advance=20 which file I'm looking for, I essentially have to decompress the whole=20 thing and then work on it. One can argue that you could do some kind of tar = | grep | .... However, this is always a one shot and limited in terms of=20 searching. In fact, I do that often and the result is that I needed often=20 to do the tar|grep many times before finding the right thing; so instead, I = decompress the whole thing and then work on it. Then after, I have to rm=20 -rf all. - mounting the file as a fs would do the trick more cleanly, more easily. I might not be convincing anybody, but this would be for me at least a good = academic exercise.... ;-))) Could I get at least some advice on how to start programming this=20 (references, code examples,...)? Is the stackable fs software (fist) a good = starting point? Are the null/umap fs the good starting point instead? Marc. > > -- > -Alfred Perlstein [alfred@freebsd.org] > 'Instead of asking why a piece of software is using "1970s technology," > start asking why software is ignoring 30 years of accumulated wisdom.' > http://www.morons.org/rants/gpl-harmful.php3 ------------------------------------------ Marc Blanchet Viag=E9nie tel: +1-418-656-9254x225 ------------------------------------------ http://www.freenet6.net: IPv6 connectivity ------------------------------------------ http://www.normos.org: IETF(RFC,draft), IANA,W3C,... standards. ------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message