There are several bugs in unionfs rename of DELETE_ALL mode.
Here is a minor one and a patch.
- hidden inode is not iput() since ibstart and ibend is not updated.
Junjiro Okajima
--- unionfs-20060122-1451/subr.c 23 Jan 2006 14:18:05 -0000 1.1
+++ unionfs-20060122-1451/subr.c 24 Jan 2006 09:54:25 -0000 1.3
@@ -185,8 +185,12 @@ int create_whiteout_parent(struct dentry
else
continue;
}
set_itohi_index(parent_dentry->d_inode, bindex,
IGRAB(hidden_parent_dentry->d_inode));
+ if (bindex < ibstart(parent_dentry->d_inode))
+ ibstart(parent_dentry->d_inode) = bindex;
+ else if (bindex > ibend(parent_dentry->d_inode))
+ ibend(parent_dentry->d_inode) = bindex;
}
/* lookup for the whiteout dentry that we want to create */
_______________________________________________
unionfs mailing list
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs