diff options
author | Samikshan Bairagya <samikshan@gmail.com> | 2016-10-13 17:13:54 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2016-10-20 03:12:26 -0700 |
commit | daea58a51b70f80ab04f115e49f8bf8790b6046a (patch) | |
tree | 6656d85f46d0a84629fe93904bdc44fb4e29ddf6 /xlators/mgmt/glusterd/src/glusterd-utils.c | |
parent | 8d8eded58cd5431a7000a70337444b828cb400d8 (diff) |
cli, glusterd: Address issues in get-state cli output
This fixes the following data points:
1. Volume type
2. Peer state
3. List of other hostnames for a peer
4. Data unit information for rebalance
The following data points are removed:
1. Mount options and filesystem types for bricks
2. global-option-version from list of global options
The following data points are added:
1. Replica Count
2. Tier type for bricks belonging to hot/cold tier
Change-Id: I5011250e863fdc4929b203cdb345d79b2f16c6a5
BUG: 1385839
Signed-off-by: Samikshan Bairagya <samikshan@gmail.com>
Reviewed-on: http://review.gluster.org/15662
Reviewed-by: mohammed rafi kc <rkavunga@redhat.com>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Smoke: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index 5b02a321c42..48232ffdaa8 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -11207,8 +11207,8 @@ glusterd_volume_get_type_str (glusterd_volinfo_t *volinfo, char **voltype_str) GF_VALIDATE_OR_GOTO (THIS->name, volinfo, out); - type = get_vol_type (volinfo->type, volinfo->brick_count, - volinfo->dist_leaf_count); + type = get_vol_type (volinfo->type, volinfo->dist_leaf_count, + volinfo->brick_count); *voltype_str = vol_type_str[type]; |