GIT: unionfs2-2.6.27.y: Unionfs: don't printk trivial message upon normal rename-copyup

Erez Zadok ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:17:17 EDT 2010


commit 806920cf4a3b77631e1d38738783294bf816e154
Author: Erez Zadok <ezk at cs.sunysb.edu>
Date:   Wed Oct 17 16:37:51 2007 -0400

    Unionfs: don't printk trivial message upon normal rename-copyup
    
    Signed-off-by: Erez Zadok <ezk at cs.sunysb.edu>

diff --git a/fs/unionfs/rename.c b/fs/unionfs/rename.c
index 91d41d4..1ab474f 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;
 		}
 	}


More information about the unionfs-cvs mailing list