Hi there,
what about a port of Unionfs to Solaris ?
I read this wouldn't be too hard for someone who knows about filesystems in 
Solaris.

Unionfs would be perfect for usage within Zones, imagine the following:

I want to create 10 Zones, for 10 friends of mine.
What I have to do now is COPY all the neccessary files from /bin/.. /lib/.. 
/sbin/.. to EACH zone, this means I have got 10x wasted space.
With Unionfs I could create the perfect solution:
Create a directory /opt/zones-template, and copy all the neccessary files into 
it.
Then simply do:

mount -t unionfs \
-o dirs=/opt/zone1:/opt/zones-template=ro \
none /opt/zone1

for each zone.
2. line: means the directory /opt/zone1 will overlay /opt/zones-template (which 
is readable only, so all changes go to /opt/zone1)
3. line: it will be mounted to /opt/zone1 (the filesystem does not recurse, so 
this is possible)

So I don't waste any space, for copying files twice.
Also I can update files in /opt/zones-templates, which are then updated in all 
zones.

You see it would be perfect !

Zones are just one example, OpenSolaris Live-CDs would also benefit from 
Unionfs (take a look at KNOPPIX and other Linux Live-CDs, nearly all of them 
use Unionfs).

Some links:
The official Unionfs project site:
http://www.fsl.cs.sunysb.edu/project-unionfs.html

A nice introduction how to use Unionfs.
http://www.linuxjournal.com/article/7714

I am sure a lot of people will like this :)
Hope someone will be found who has the time and knowledge to contribute a port 
of it.

Thanks in advance !
Daniel
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to