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
This commit is contained in:
Vikas Gorur 2009-11-25 02:19:31 +00:00 committed by Anand V. Avati
parent 1bcb009cf6
commit 1c6a55b04c

View File

@ -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);
}