summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2017-07-24 17:54:07 +0530
committerJeff Darcy <jeff@pl.atyp.us>2017-07-24 20:39:10 +0000
commit1431786305055e0fe90e012e03278f504a2d8d14 (patch)
tree481ce993e6b7f05ece319aee9478ffb80e6d0abf
parentfebf5ed4848ad705a34413353559482417c61467 (diff)
glusterd: add rebal estimates time in get-state
Fixes: #279 Change-Id: If62fa59042604c9450749d3012c7a962ed0eb374 Signed-off-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-on: https://review.gluster.org/17862 Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Samikshan Bairagya <samikshan@gmail.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
-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 3a6445d8ace..2968c1413d6 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
@@ -5522,6 +5522,8 @@ glusterd_get_state (rpcsvc_request_t *req, dict_t *dict)
volinfo->rebal.rebalance_files);
fprintf (fp, "Volume%d.rebalance.data: %s\n", count,
gf_uint64_2human_readable (volinfo->rebal.rebalance_data));
+ fprintf (fp, "Volume%d.time_left: %"PRIu64"\n", count,
+ volinfo->rebal.time_left);
if (volinfo->type == GF_CLUSTER_TYPE_TIER) {
ret = glusterd_volume_get_hot_tier_type_str (