summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-handler.c
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2018-01-23 08:23:11 +0530
committerAtin Mukherjee <amukherj@redhat.com>2018-01-25 08:04:32 +0000
commitb7844629bb4b46c11a1e6de9a383fd46b597c648 (patch)
tree194520baa11a15c9ee67a6e22f12c7f3d5dc2448 /xlators/mgmt/glusterd/src/glusterd-handler.c
parent9d708a3739c8201d23f996c413d6b08f8b13dd90 (diff)
glusterd: add profile_enabled flag in get-state
Change-Id: I09f348ed7ae6cd481f8c4d8b4f65f2f2f6aad84e BUG: 1537364 Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-handler.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-handler.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c
index a6545fc66fd..1a6ddea2f54 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
@@ -5611,6 +5611,8 @@ glusterd_get_state (rpcsvc_request_t *req, dict_t *dict)
fprintf (fp, "Volume%d.transport_type: %s\n", count,
transport_type_str);
fprintf (fp, "Volume%d.status: %s\n", count, vol_status_str);
+ fprintf (fp, "Volume%d.profile_enabled: %d\n", count,
+ glusterd_is_profile_on (volinfo));
fprintf (fp, "Volume%d.brickcount: %d\n", count,
volinfo->brick_count);