Re: Overlay filesystem

From: Pavel Machek (pavel@suse.cz)
Date: Wed Apr 19 2000 - 07:30:58 EST


Hi!

> > In 2.3.99-pre3 and less, I had patch which redirected all accesses to
> > nonexistant files into /overlay filesystem. It is handy for stuff like
> > transparent decompression of .gz files or entering of .tar.gz archives
> > with simple cd.
> >
> > Question is: is there simple way to do this with "new" vfs, or should
> > I just try to redo stuff I did for 2.3.99-pre3?
> >
> > Pavel
> >
> > Old patch looked like this:
>
> [snip]
>
> Ouch. Pavel, it's just completely wrong. First of all, no_file() is
> bogus wrt symlinks. Moreover, it imposes a lot of overhead on _every_
> mkdir()/creat()/mknod()/symlink()/link(). BTW, in the 'nonclean' variant
> it messes with CVS, pine, whatnot.

I kind of expected that ;-).

> What are you using it for? I _seriously_ suspect that there are better
> ways to achieve the effect you actually need. Care to describe?

Yes. I have an userland filesystem, mounted on /overlay. Fs on
/overlay has all files / filesystem has, plus many more. For example,
each file.gz has cooresponding file.gz#ugz, which contains its
uncompressed version. Each file.tar has file file.tar#utar, which
contains whole tree of that archive.

I could do chroot /overlay at the bootup, but that would be *very*
slow (every fs request going through userland... Oh horror). So I
created that patch...

Is there better solution?
                                                                Pavel

-- 
The best software in life is free (not shareware)!		Pavel
GCM d? s-: !g p?:+ au- a--@ w+ v- C++@ UL+++ L++ N++ E++ W--- M- Y- R+

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:15 EST