> On Thu, Jan 05, 2006 at 04:13:31AM -0500, Art Wallace wrote: >> I'm a new unionfs user and have some basic questions to ask. >> >> First off, I want to be sure that what I'm doing is safe. I have several hard disks which are currently shared as read/write samba shares. Now with unionfs, I've combined these hard disks into one read/only directory for convenient browsing purposes. The unionfs dir is shared as a read/only samba share. What I want to know is whether or not it is safe to modify the "source" directories by accessing them from their read/write samba shares. My tests show this working, as the unionfs dir/share is picking up the changes made to the contents of the original directories. But will this cause problems? > > With the way things are done now, it is not safe. You can do two things right now:
Do you plan to make this safely work in the future? And if not, why and where are the problems? > > 1. remount the union (the better than #2) What happens in the time from altering the branch (which may take some time) until the remount takes place. Does this result in wrong metadata for the files, since metadata is taken only from the leftmost branch, and therefore an inconsistent view? > 2. Increase the superblock generation number in unionfs (really a hack): > > uniondbg -g /unionfs/mount/point sounds not to be safe? -- Wilhelm _______________________________________________ unionfs mailing list [email protected] http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs
