diff options
author | Kaushal M <kaushal@redhat.com> | 2012-05-04 15:13:03 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2012-05-08 04:06:38 -0700 |
commit | 44a1857e544f64e10e8bfb4641bedd841910a6c6 (patch) | |
tree | b2a660b1e46185603c47e6e49ce101132d750fc5 /xlators/protocol/server/src | |
parent | eb7c8dd03d84d7c3917d18a59d86c379382c8b2d (diff) |
protocol/{client,server} : Log improvements
Make use of gfid in log messages.
Change-Id: I28548be64d19418f99ee9ccdbd3ac4ae67c6c015
BUG: 814666
Signed-off-by: Kaushal M <kaushal@redhat.com>
Reviewed-on: http://review.gluster.com/3274
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/protocol/server/src')
-rw-r--r-- | xlators/protocol/server/src/server3_1-fops.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/xlators/protocol/server/src/server3_1-fops.c b/xlators/protocol/server/src/server3_1-fops.c index 10dddd79b16..c652dd5b3e2 100644 --- a/xlators/protocol/server/src/server3_1-fops.c +++ b/xlators/protocol/server/src/server3_1-fops.c @@ -523,9 +523,10 @@ server_mkdir_cbk (call_frame_t *frame, void *cookie, xlator_t *this, inode_unref (link_inode); } else { gf_log (this->name, GF_LOG_INFO, - "%"PRId64": MKDIR %s ==> %"PRId32" (%s)", + "%"PRId64": MKDIR %s (%s) ==> %"PRId32" (%s)", frame->root->unique, state->loc.path, - op_ret, strerror (op_errno)); + state->loc.inode ? uuid_utoa (state->loc.inode->gfid) : + "--",op_ret, strerror (op_errno)); } GF_PROTOCOL_DICT_SERIALIZE (this, xdata, (&rsp.xdata.xdata_val), @@ -569,9 +570,10 @@ server_mknod_cbk (call_frame_t *frame, void *cookie, xlator_t *this, inode_unref (link_inode); } else { gf_log (this->name, GF_LOG_INFO, - "%"PRId64": MKNOD %s ==> %"PRId32" (%s)", + "%"PRId64": MKNOD %s (%s) ==> %"PRId32" (%s)", frame->root->unique, state->loc.path, - op_ret, strerror (op_errno)); + state->loc.inode ? uuid_utoa (state->loc.inode->gfid) : + "--",op_ret, strerror (op_errno)); } GF_PROTOCOL_DICT_SERIALIZE (this, xdata, (&rsp.xdata.xdata_val), |