Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Nov 2001 10:32:26 -0500
From:      Marc Blanchet <Marc.Blanchet@viagenie.qc.ca>
To:        Alfred Perlstein <bright@mu.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help


-- mercredi, novembre 28, 2001 20:04:16 -0600 Alfred Perlstein=20
<bright@mu.org> wrote/a =E9crit:

> * Marc Blanchet <Marc.Blanchet@viagenie.qc.ca> [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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?278520000.1007047945>