summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-handler.c
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2010-10-04 06:32:47 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-10-04 07:05:33 -0700
commit408c164d0adf67d0ab636d3f617fc48c896d33a6 (patch)
treec624ccfa5010b003956fb4d6a4cce81513dbe356 /xlators/mgmt/glusterd/src/glusterd-handler.c
parente2438fdde0458b70b0cd201b4950b676188d0824 (diff)
cli: add more type for volumes
Added 'Distributed-Replicate', 'Distributed-Stripe' as types Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 971 (dynamic volume management) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-handler.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-handler.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c
index 5f3e50ce770..c21cd906cd2 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
@@ -320,6 +320,11 @@ glusterd_add_volume_detail_to_dict (glusterd_volinfo_t *volinfo,
if (ret)
goto out;
+ snprintf (key, 256, "volume%d.sub_count", count);
+ ret = dict_set_int32 (volumes, key, volinfo->sub_count);
+ if (ret)
+ goto out;
+
snprintf (key, 256, "volume%d.transport", count);
ret = dict_set_int32 (volumes, key, volinfo->transport_type);
if (ret)