commit 9274b1561b877cc862ce559e47b5d9eb4a81d3e0
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 118bd57..b1b756c 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