commit 00967f73c1a9bc01f26993309844267c94b65350
Author: Yiannis Pericleous <[EMAIL PROTECTED]>
Date:   Sat May 5 16:03:50 2007 -0400

    bugfix: ignore notify_change error when updating mtime in unlink and rmvdir

diff --git a/fs/unionfs/unlink.c b/fs/unionfs/unlink.c
index 0284d91..2998725 100644
--- a/fs/unionfs/unlink.c
+++ b/fs/unionfs/unlink.c
@@ -76,6 +76,11 @@ static int unionfs_do_unlink(struct inode *dir, struct 
dentry *dentry)
        attr.ia_valid = ATTR_MTIME | ATTR_MTIME_SET | ATTR_FORCE;
        err = notify_change(dentry->d_parent, &attr);
 
+       /* XXX: ignore this error, for now, unionfs_setattr should
+        * be modified to set the attributes in /odf/ns not lower
+        * branches or set the odf mtime here */
+       err = 0;
+
 out:
        if (!err)
                dentry->d_inode->i_nlink--;
@@ -170,6 +175,11 @@ static int unionfs_do_rmdir(struct inode *dir, struct 
dentry *dentry)
        attr.ia_valid = ATTR_MTIME | ATTR_MTIME_SET | ATTR_FORCE;
        err = notify_change(dentry->d_parent, &attr);
 
+       /* XXX: ignore this error, for now, unionfs_setattr should
+        * be modified to set the attributes in /odf/ns not lower
+        * branches or set the odf mtime here */
+       err = 0;
+
 out:
        return err;
 }
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to