summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
Diffstat (limited to 'xlators')
-rw-r--r--xlators/storage/posix/src/posix.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index ad42d2e1c8f..f58cd27473d 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -1173,6 +1173,7 @@ posix_mknod (call_frame_t *frame, xlator_t *this,
char *pgfid_xattr_key = NULL;
gf_boolean_t entry_created = _gf_false, gfid_set = _gf_false;
gf_boolean_t linked = _gf_false;
+ gf_loglevel_t level = GF_LOG_NONE;
DECLARE_OLD_FS_ID_VAR;
@@ -1251,9 +1252,11 @@ real_op:
}
close (tmp_fd);
} else {
-
- gf_msg (this->name, GF_LOG_ERROR, errno,
- P_MSG_MKNOD_FAILED,
+ if (op_errno == EEXIST)
+ level = GF_LOG_DEBUG;
+ else
+ level = GF_LOG_ERROR;
+ gf_msg (this->name, level, errno, P_MSG_MKNOD_FAILED,
"mknod on %s failed", real_path);
goto out;
}