[Unionfs] Problem with unionfs

Stephan Schöffel schoeffel at fh-bingen.de
Wed Feb 13 08:51:21 EST 2008


hi there,

i'm still new to unionfs. i followed the tutorial on this website 
http://flaviostechnotalk.com/wordpress/index.php/2005/06/28/filesystem-snapshots-with-unionfs/ 
which was linked at the unionfs website.

the example did work but it does not fit my problem properly. i tries 
different things but could not get it to work the way i want.

here is what i want:

 i want (via script and using unionfs) to bring different directories to 
their original state if the machine is rebooted. eg i want to delete 
files users write to /tmp
i used the following approach:

modprobe unionfs
mkdir /tmp_union
mount -t unionfs -o dirs=/tmp=rw unionfs /tmp_union
mkdir /tmp_snap

unionctl /tmp_union --add --mode rw /tmp_snap
unionctl --mode ro /tmp




unfortunately, users can still write to /tmp and the changes are not 
logged in /tmp_snap. is there a way to bring /tmp back to its original 
state by using unionfs?

--stephan


More information about the unionfs mailing list