From d23790d9e2365a0663ed9452c49835133046d136 Mon Sep 17 00:00:00 2001 From: Krutika Dhananjay Date: Sun, 19 Mar 2017 17:09:06 +0530 Subject: gfapi: Dump graph upon initilization/switch for better debugging experience Having this information printed the way FUSE/nfs do would helps immensely with debugging experience, especially when a user/customer has added and removed bricks a couple of times. It helps in mapping the brick path to its corresponding protocol/client translator and in turn all the log messages that may be thrown by this protocol/client xlator. Change-Id: I0784e5fe932326fdbdc56f5a12b6951c7541a8cf Signed-off-by: Krutika Dhananjay Reviewed-on: https://review.gluster.org/16919 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Pranith Kumar Karampuri Reviewed-by: Vijay Bellur Reviewed-by: soumya k Reviewed-by: Jeff Darcy --- api/src/glfs-mgmt.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'api') diff --git a/api/src/glfs-mgmt.c b/api/src/glfs-mgmt.c index 6b65e517a67..3c8b3b0102f 100644 --- a/api/src/glfs-mgmt.c +++ b/api/src/glfs-mgmt.c @@ -83,6 +83,8 @@ glfs_process_volfp (struct glfs *fs, FILE *fp) goto out; } + gf_log_dump_graph (fp, graph); + ret = 0; out: if (fp) -- cgit