From a0ed5141f8cfc4d56a6309adfc6ca1d35de3df00 Mon Sep 17 00:00:00 2001 From: Atin Mukherjee Date: Mon, 24 Jul 2017 17:54:07 +0530 Subject: glusterd: add rebal estimates time in get-state >Reviewed-on: https://review.gluster.org/17862 >Smoke: Gluster Build System >Reviewed-by: Samikshan Bairagya >CentOS-regression: Gluster Build System >(cherry picked from commit 1431786305055e0fe90e012e03278f504a2d8d14) Fixes: #279 Change-Id: If62fa59042604c9450749d3012c7a962ed0eb374 Signed-off-by: Atin Mukherjee Reviewed-on: https://review.gluster.org/17871 Smoke: Gluster Build System CentOS-regression: Gluster Build System Reviewed-by: Shyamsundar Ranganathan --- xlators/mgmt/glusterd/src/glusterd-handler.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c index 7039e3027bc..ba6f4afa94d 100644 --- a/xlators/mgmt/glusterd/src/glusterd-handler.c +++ b/xlators/mgmt/glusterd/src/glusterd-handler.c @@ -5576,6 +5576,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 ( -- cgit