diff options
author | Krutika Dhananjay <kdhananj@redhat.com> | 2017-03-19 17:09:06 +0530 |
---|---|---|
committer | Jeff Darcy <jeff@pl.atyp.us> | 2017-03-20 19:32:57 -0400 |
commit | d23790d9e2365a0663ed9452c49835133046d136 (patch) | |
tree | 236699eb61725eaeea2c011108182d865287ebbe | |
parent | 71e023fcaab0058f32fedc7b6b702040fdd85f46 (diff) |
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 <kdhananj@redhat.com>
Reviewed-on: https://review.gluster.org/16919
Smoke: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Reviewed-by: soumya k <skoduri@redhat.com>
Reviewed-by: Jeff Darcy <jeff@pl.atyp.us>
-rw-r--r-- | api/src/glfs-mgmt.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |