diff options
author | Vikas Gorur <vikas@gluster.com> | 2009-11-25 02:19:31 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-11-25 06:03:43 -0800 |
commit | 1c6a55b04c418106cf2be5156fa8e53b1adaa1b4 (patch) | |
tree | 045d287d5f1d4392a2dc5a75eeaa5b0d9f0c2879 /xlators/protocol/client/src | |
parent | 1bcb009cf65e57117653bbbb5cdf673f9d9142e9 (diff) |
protocol/client: Make log message print both generation number and inode number.
Signed-off-by: Vikas Gorur <vikas@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 315 (generation number support)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=315
Diffstat (limited to 'xlators/protocol/client/src')
-rw-r--r-- | xlators/protocol/client/src/client-protocol.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/xlators/protocol/client/src/client-protocol.c b/xlators/protocol/client/src/client-protocol.c index c33e301e00b..bee6424cd93 100644 --- a/xlators/protocol/client/src/client-protocol.c +++ b/xlators/protocol/client/src/client-protocol.c @@ -4881,11 +4881,12 @@ client_lookup_cbk (call_frame_t *frame, gf_hdr_common_t *hdr, size_t hdrlen, gf_log (frame->this->name, GF_LOG_DEBUG, "LOOKUP %"PRId64"/%s (%s): " "inode number changed from " - "%"PRId64" to %"PRId64, - local->loc.parent->ino, + "{%"PRId64",%"PRId64"} to {%"PRId64",%"PRId64"}", + local->loc.parent ? + local->loc.parent->ino : (uint64_t) 0, local->loc.name, local->loc.path, - oldino, stbuf.st_ino); + oldgen, oldino, stbuf.st_dev, stbuf.st_ino); goto fail; } @@ -4896,7 +4897,8 @@ client_lookup_cbk (call_frame_t *frame, gf_hdr_common_t *hdr, size_t hdrlen, "LOOKUP %"PRId64"/%s (%s) : " "failed to set remote inode " "number to inode ctx", - local->loc.parent->ino, + local->loc.parent ? + local->loc.parent->ino : (uint64_t) 0, local->loc.name, local->loc.path); } |