From c46f85b026a1d0ad90f7be0efa4cd380962a1741 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Wed, 23 Feb 2011 02:12:50 +0000 Subject: if volume created is both of tcp and rdma type show it in volume info Signed-off-by: Raghavendra Bhat Signed-off-by: Anand V. Avati 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 --- cli/src/cli3_1-cops.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cli/src/cli3_1-cops.c') 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; -- cgit