commit 52273ddd6278dc630f8b1f83225a73173d5e74d1
Author: Erez Zadok <[EMAIL PROTECTED]>
Date:   Fri Nov 16 13:45:33 2007 -0500

    Unionfs: don't printk trivial message upon normal rename-copyup
    
    Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/rename.c b/fs/unionfs/rename.c
index 6cc7923..3e1adde 100644
--- a/fs/unionfs/rename.c
+++ b/fs/unionfs/rename.c
@@ -89,10 +89,12 @@ static int __unionfs_rename(struct inode *old_dir, struct 
dentry *old_dentry,
                                       new_dentry, new_dentry->d_name.name,
                                       bindex);
                if (IS_ERR(lower_new_dentry)) {
-                       printk(KERN_ERR "unionfs: error creating directory "
-                              "tree for rename, bindex = %d, err = %ld\n",
-                              bindex, PTR_ERR(lower_new_dentry));
                        err = PTR_ERR(lower_new_dentry);
+                       if (err == -EROFS)
+                               goto out;
+                       printk(KERN_ERR "unionfs: error creating directory "
+                              "tree for rename, bindex=%d err=%d\n",
+                              bindex, err);
                        goto out;
                }
        }
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to