summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2011-02-23 02:12:50 +0000
committerAnand V. Avati <avati@dev.gluster.com>2011-02-28 23:10:24 -0800
commitc46f85b026a1d0ad90f7be0efa4cd380962a1741 (patch)
tree69c5cebf8c88f66718fe218c324f9deab099c866
parent63f00588bbfd477c2f4579fd4392c14679dd7ac0 (diff)
if volume created is both of tcp and rdma type show it in volume info
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2294 (Currently there is no way through cli to make a volume listen on both the transports (socket/rdma)) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2294
-rw-r--r--cli/src/cli3_1-cops.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/src/cli3_1-cops.c b/cli/src/cli3_1-cops.c
index b409a87104b..8255f8184cd 100644
--- a/cli/src/cli3_1-cops.c
+++ b/cli/src/cli3_1-cops.c
@@ -499,8 +499,10 @@ gf_cli3_1_get_volume_cbk (struct rpc_req *req, struct iovec *iov,
else
cli_out ("Number of Bricks: %d", brick_count);
- cli_out ("Transport-type: %s", ((transport == 0)?
- "tcp" : "rdma"));
+ cli_out ("Transport-type: %s",
+ ((transport == 0)?"tcp":
+ (transport == 1)?"rdma":
+ "tcp,rdma"));
j = 1;