From 6066038c7bd96791143a63ed03a617c8cb7020f8 Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Tue, 7 Sep 2010 07:35:56 +0000 Subject: Volume info should display transport-type Signed-off-by: shishir gowda Signed-off-by: Vijay Bellur BUG: 1230 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1230 --- xlators/mgmt/glusterd/src/glusterd-handler.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xlators') diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c index d0592c3fd00..a2563865acd 100644 --- a/xlators/mgmt/glusterd/src/glusterd-handler.c +++ b/xlators/mgmt/glusterd/src/glusterd-handler.c @@ -323,6 +323,11 @@ glusterd_add_volume_detail_to_dict (glusterd_volinfo_t *volinfo, if (ret) goto out; + snprintf (key, 256, "volume%d.transport", count); + ret = dict_set_int32 (volumes, key, volinfo->transport_type); + if (ret) + goto out; + list_for_each_entry (brickinfo, &volinfo->bricks, brick_list) { char brick[1024] = {0,}; snprintf (key, 256, "volume%d.brick%d", count, i); -- cgit