Josef Sipek wrote:
On Fri, Jan 19, 2007 at 02:52:12PM -0500, Shaya Potter wrote:
why not
if (branch(old_dentry) != left_most)
copyup();
vfs_rename(old_dentry, new_dentry);
create_whiteout(old_dentry);
I'm thinking of something more like this:
if (is_ro_branch(old))
copyup_to_left_most();
vfs_rename(old,new);
create_wh(old);
This way, we copyup only when we have to.
that won't work, because there can be something w/ "new name" to the
left of "old branch", so that will obscure it. Hence, why I say, we
always copyup. This is consistent with what will happen when one tries
to move a dir, even if the the branch is rw.
_______________________________________________
unionfs mailing list
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs