From 3e95176263e31135039bc65b9aa510801af20d4d Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Wed, 9 Mar 2011 07:14:54 +0000 Subject: do not access the inode while doing statfs in trace Signed-off-by: Raghavendra Bhat Signed-off-by: Vijay Bellur BUG: 2502 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2502 --- xlators/debug/trace/src/trace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/debug/trace') 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, -- cgit