commit 93dd96193207da9f68cb753b9278b28dcd2aee5d
Author: Erez Zadok <[EMAIL PROTECTED]>
Date:   Wed Oct 17 16:37:51 2007 -0400

    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 cb2b429..62fa78b 100644
--- a/fs/unionfs/rename.c
+++ b/fs/unionfs/rename.c
@@ -40,10 +40,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