diff options
author | Ravishankar N <ravishankar@redhat.com> | 2015-11-25 16:42:20 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2015-11-25 23:25:58 -0800 |
commit | 20588e53774f1f16e4e9e25481b785f02231c485 (patch) | |
tree | 2194b08ec9cc4b56efe4b614a63853049a2c56e0 /xlators/mgmt | |
parent | c85c805e980f7981dc7c87d87ef2283931c0be18 (diff) | |
download | glusterfs-20588e53774f1f16e4e9e25481b785f02231c485.tar.gz glusterfs-20588e53774f1f16e4e9e25481b785f02231c485.tar.xz glusterfs-20588e53774f1f16e4e9e25481b785f02231c485.zip |
cli: Indicate which brick of the replica is the arbiter
Enhances the cli output for arbiter volumes as requested in the BZ.
Signed-off-by: Ravishankar N <ravishankar@redhat.com>
Change-Id: I28cc34d7d19def043d54291cede25a58dbcc5051
BUG: 1285288
Reviewed-on: http://review.gluster.org/12747
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'xlators/mgmt')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-handler.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c index 40704b7451..fca5857cc9 100644 --- a/xlators/mgmt/glusterd/src/glusterd-handler.c +++ b/xlators/mgmt/glusterd/src/glusterd-handler.c @@ -362,6 +362,12 @@ glusterd_add_tier_volume_detail_to_dict (glusterd_volinfo_t *volinfo, goto out; memset (key, 0, sizeof (key)); + snprintf (key, 256, "volume%d.cold_arbiter_count", count); + ret = dict_set_int32 (dict, key, volinfo->arbiter_count); + if (ret) + goto out; + + memset (key, 0, sizeof (key)); snprintf (key, 256, "volume%d.cold_disperse_count", count); ret = dict_set_int32 (dict, key, volinfo->tier_info.cold_disperse_count); |