From e3f42a06b08cbdf36285f88986ecfea9edae6657 Mon Sep 17 00:00:00 2001 From: Rachita Kothiyal Date: Tue, 27 Nov 2007 15:04:29 -0500 Subject: [PATCH] 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) --- fs/unionfs/unlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.43.0