summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 65b28dc8d21..6f9b2c0aee0 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -1229,6 +1229,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;
@@ -1307,9 +1308,11 @@ real_op:
}
sys_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;
}