diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2011-03-09 07:14:54 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2011-03-10 17:51:59 -0800 |
commit | 3e95176263e31135039bc65b9aa510801af20d4d (patch) | |
tree | edd8f9601c3e51ebece7ca337e952f69786e2e47 /xlators/debug | |
parent | b42578dbff924a2c0f70f379e4bcf67950d4ce9a (diff) |
do not access the inode while doing statfs in trace
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 2502 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2502
Diffstat (limited to 'xlators/debug')
-rw-r--r-- | xlators/debug/trace/src/trace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/debug/trace/src/trace.c b/xlators/debug/trace/src/trace.c index 228a0166d4e..c7c6a867c65 100644 --- a/xlators/debug/trace/src/trace.c +++ b/xlators/debug/trace/src/trace.c @@ -1857,8 +1857,8 @@ trace_statfs (call_frame_t *frame, xlator_t *this, loc_t *loc) if (trace_fop_names[GF_FOP_STATFS].enabled) { gf_log (this->name, GF_LOG_NORMAL, "%"PRId64": gfid=%s path=%s", - frame->root->unique, uuid_utoa (loc->inode->gfid), - loc->path); + frame->root->unique, (loc->inode)? + uuid_utoa (loc->inode->gfid):"0", loc->path); } STACK_WIND (frame, trace_statfs_cbk, |