Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-7334 lov: Cleanup lov_stripe proc files
[fs/lustre-release.git]
/
lustre
/
utils
/
lustre_rsync.c
diff --git
a/lustre/utils/lustre_rsync.c
b/lustre/utils/lustre_rsync.c
index
c3eab0f
..
08de581
100644
(file)
--- a/
lustre/utils/lustre_rsync.c
+++ b/
lustre/utils/lustre_rsync.c
@@
-612,8
+612,13
@@
int lr_mkfile(struct lr_info *info)
} else {
rc = mknod(info->dest, S_IFREG | 0777, 0);
}
- if (rc)
- return -errno;
+
+ if (rc < 0) {
+ if (errno == EEXIST)
+ rc = 0;
+ else
+ return -errno;
+ }
/* Sync data and attributes */
if (info->type == CL_CREATE || info->type == CL_MKDIR) {