From: Rachita Kothiyal Date: Tue, 27 Nov 2007 20:04:29 +0000 (-0500) Subject: Unionfs: Fix incorrect opaque dir detection in unionfs_do_rmdir X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=e3f42a06b08cbdf36285f88986ecfea9edae6657;p=unionfs-odf.git 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(rachita@fsl.cs.sunysb.edu) --- diff --git a/fs/unionfs/unlink.c b/fs/unionfs/unlink.c index d888c6f623..9e55dfe388 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);