Blob Blame History Raw
From 90bb565dd2c452bff39c52c78575443bbcb6b848 Mon Sep 17 00:00:00 2001
From: Atin Mukherjee <amukherj@redhat.com>
Date: Mon, 24 Jul 2017 17:54:07 +0530
Subject: [PATCH 610/616] 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>

Bug: 1475331
Change-Id: If62fa59042604c9450749d3012c7a962ed0eb374
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/117169
---
 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 bd17cd4..f649099 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
@@ -5384,6 +5384,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 (
-- 
1.8.3.1