commit 6c1a2128aba36d7df034dfac3b514ffe5d70f56b
Author: Rachita Kothiyal <[EMAIL PROTECTED]>
Date: Tue Nov 27 15:04:29 2007 -0500
Unionfs: Fix incorrect opaque dir detection in unionfs_do_rmdir
Fix unionfs_do_rmdir() to recognize opaque directories correctly
for creating whiteouts.
Signed-off-by: Rachita Kothiyal([EMAIL PROTECTED])
diff --git a/fs/unionfs/unlink.c b/fs/unionfs/unlink.c
index d888c6f..9e55dfe 100644
--- a/fs/unionfs/unlink.c
+++ b/fs/unionfs/unlink.c
@@ -192,7 +192,7 @@ static int unionfs_do_rmdir(struct inode *dir, struct
dentry *dentry)
* FIXME: create wh for opaque dirs as well? or force to check all
* branches?
*/
- if (err || odf_get_opaque(dentry) != 1) {
+ if (err || odf_get_opaque(dentry) != -1) {
if (err == -EIO)
printk(KERN_WARNING "unionfs: rmdir: IO error "
"removing from branch %d\n", bindex);
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs