ArcFS - transparent read-only archive access for Linux

Copyright (C) 1994  David P Gymer

Derived in part from code written by Jeremy Fitzhardinge
<jeremy@sw.oz.au>.


This code represents a simple user-level filesystem for Linux using
Jeremy Fitzhardinge's userfs (which must be gotten and installed into
the kernel separately) which presents a zip or tar.gz archive as a
read-only filesystem, allowing one to cd into the archive, use less or
emacs to view files, and ls to view the archive contents.

It should be easy for even fairly inexperienced C programmers to
extend to other types of archives.

This code is a quick and dirty hack.  It's not meant as anything else;
it works, but it ain't pretty, and it's certainly not bulletproof
(heck, it's not even paper-dart proof!).

Basic use goes something like this,
	"muserfs ./arcfs /mnt/0 ./test.tar.gz"
then you can do
	"find /mnt/0 -ls"
and see what's in the archive.  After you've finished, make sure no
process has anything in the arhive open (including as it's current
directory; ie. if you did "cd /mnt/0/a.directory", be sure to cd out)
and then hit ^C or send a SIGINT to "arcfs" to kill it and unmount the
archive.

[I just upgrdaded my copy of umount, and I have to do
	"/sbin/umount /mnt/0"
by hand to kill it off completely.]

-- Dave
dpg@cs.nott.ac.uk (but only til June or July this year :-[ ).
Just Another Linux Hacker
