On Mon, 01 Sep 2008 10:27:54 -0400, Shaya Potter wrote: > Ryusuke Konishi wrote: > > It's working fine. > > Is there a quicker way? (Or something to add?) > > well, with new unionfs, you wouldn't use unionctl, but what I did was > close, but something more along the lines of > > - to setup > > mkdir /base /nilfs /snap-ro /union > mount -t ext3 /dev/sdb1 /base > mount -t nilfs2 /dev/sdb2 /nilfs > > mkdir /nilfs/1 > > mount -t unionfs -o dirs=/nilfs/1=rw,/base=ro none /union > (use union), all writes go to nilfs > > - to rollback to a checkpoint, but keep it writable. > > mount -t nilfs2 -o ro,cp=xyz /dev/sdb1 /snap-ro > mkdir /nilfs/2 > mount -t unionfs -o dirs=/nilfs/2=rw,/nilfs/1=ro,/base=ro none /union > > i.e. chaining the /nilfs/* dirs together with unionfs.
Thank you for letting us know! It looks nicer than mine. These may be able to be wrapped in a shell script or in the mount.nilfs2 helper program. Or, we may be able to use autofs to make these mounts automatic. Cheers, Ryusuke _______________________________________________ users mailing list [email protected] https://www.nilfs.org/mailman/listinfo/users
