Date: Thu, 29 Nov 2001 16:45:52 +0100 From: Bernd Walter <ticso@cicely8.cicely.de> To: Marc Blanchet <Marc.Blanchet@viagenie.qc.ca> Cc: Alfred Perlstein <bright@mu.org>, freebsd-fs@FreeBSD.ORG Subject: Re: tgz filesystem Message-ID: <20011129164552.B50731@cicely8.cicely.de> In-Reply-To: <278520000.1007047945@classic> References: <224030000.1006998892@classic> <20011128200416.Q46769@elvis.mu.org> <278520000.1007047945@classic>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Nov 29, 2001 at 10:32:26AM -0500, Marc Blanchet wrote: > however, the extraction would only be done during the mount time (with the > impact of some significant mount delay before the fs is ready if the file > is big and the processor is slow). But, if the fs is not mounted, then the > space of the temporary copy is not used, and also it keeps the data in the > 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 > which file I'm looking for, I essentially have to decompress the whole > 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 > searching. In fact, I do that often and the result is that I needed often > 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 > -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 > (references, code examples,...)? Is the stackable fs software (fist) a good > starting point? Are the null/umap fs the good starting point instead? Write a mount_tar shell script, which untars it to /tmp/something and does a softlink on the mountpoint. Write a umount_tar shell script which untangles /tmp/something and the softlink On reboot /tmp is cleaned anyway if you put it on an mfs/md filesystem. If you like you can also use a separate partiotion from /tmp, which is only writeable by root, so you don't have to wory about tempnames that much. You can also put it into an automounter configuration so you don't have to manualy mount it. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de 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?20011129164552.B50731>
