summaryrefslogtreecommitdiffstats
path: root/xlators/debug
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2011-03-09 07:14:54 +0000
committerVijay Bellur <vijay@dev.gluster.com>2011-03-10 17:51:59 -0800
commit3e95176263e31135039bc65b9aa510801af20d4d (patch)
treeedd8f9601c3e51ebece7ca337e952f69786e2e47 /xlators/debug
parentb42578dbff924a2c0f70f379e4bcf67950d4ce9a (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.c4
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,