summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/storage/posix/src/posix-helpers.c2
-rw-r--r--xlators/storage/posix/src/posix.c12
2 files changed, 7 insertions, 7 deletions
diff --git a/xlators/storage/posix/src/posix-helpers.c b/xlators/storage/posix/src/posix-helpers.c
index 082e74eb6f5..0d81e9a644a 100644
--- a/xlators/storage/posix/src/posix-helpers.c
+++ b/xlators/storage/posix/src/posix-helpers.c
@@ -518,8 +518,6 @@ posix_fdstat (xlator_t *this, int fd, struct iatt *stbuf_p)
iatt_from_stat (&stbuf, &fstatbuf);
ret = posix_fill_gfid_fd (this, fd, &stbuf);
- if (ret)
- gf_log_callingfn (this->name, GF_LOG_DEBUG, "failed to get gfid");
posix_fill_ino_from_gfid (this, &stbuf);
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index cafe565c321..63439d3f707 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -2793,8 +2793,9 @@ _fill_writev_xdata (fd_t *fd, dict_t *xdata, xlator_t *this, int is_append)
inode = fd->inode;
if (!fd || !fd->inode || gf_uuid_is_null (fd->inode->gfid)) {
- gf_log_callingfn (this->name, GF_LOG_ERROR, "Invalid Args: "
- "fd: %p inode: %p gfid:%s", fd, inode?inode:0,
+ gf_msg_callingfn (this->name, GF_LOG_ERROR, EINVAL,
+ P_MSG_XATTR_FAILED, "fd: %p inode: %p"
+ "gfid:%s", fd, inode?inode:0,
inode?uuid_utoa(inode->gfid):"N/A");
goto out;
}
@@ -4548,9 +4549,10 @@ posix_fsetxattr (call_frame_t *frame, xlator_t *this,
if (xdata && dict_get (xdata, DHT_IATT_IN_XDATA_KEY)) {
ret = posix_fdstat (this, pfd->fd, &stbuf);
if (ret == -1) {
- gf_log (this->name, GF_LOG_ERROR,
- "fsetxattr (fstat) failed on fd=%p: %s",
- fd, strerror (op_errno));
+ op_errno = errno;
+ gf_msg (this->name, GF_LOG_ERROR, op_errno,
+ P_MSG_XATTR_FAILED, "fsetxattr (fstat)"
+ "failed on fd=%p", fd);
goto out;
}