summaryrefslogtreecommitdiffstats
path: root/xlators/storage
diff options
context:
space:
mode:
authorHari Gowtham <hgowtham@redhat.com>2015-07-10 11:27:26 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-08-31 23:21:45 -0700
commit4c6d1c0dc7e5f51c7f3d477fb274517d57289276 (patch)
treef409be066e1699cb41c7e5029b9efbda386dcaf0 /xlators/storage
parent0baf199b065ee3adcbf36a503ac91737ab39f7e1 (diff)
posix.c posix-helpers.c: porting new log messages
Change-Id: I0c306d796ff49263d8a6c191b24a41da8a21bd2c BUG: 1252695 Signed-off-by: Hari Gowtham <hgowtham@redhat.com> Reviewed-on: http://review.gluster.org/11609 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators/storage')
-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 5d2cb7396a3..23485bdfd8d 100644
--- a/xlators/storage/posix/src/posix-helpers.c
+++ b/xlators/storage/posix/src/posix-helpers.c
@@ -513,8 +513,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 f7acb9e222a..9789a1cab0a 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -2788,8 +2788,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;
}
@@ -4536,9 +4537,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;
}