From e89725cd62430addf09d9c1afbfb07d8c86b9ef0 Mon Sep 17 00:00:00 2001 From: Rahul Date: Tue, 12 Jul 2011 13:47:51 +0000 Subject: Check type for a value greater than Distribute and not for stripe Signed-off-by: Rahul Signed-off-by: Anand Avati BUG: 3161 ([818f8c87d56bc46d0d0903275699351b66f17e57] Volume type incorrect.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3161 --- cli/src/cli-rpc-ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli') diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index 92e5a32cc..18958ab98 100644 --- a/cli/src/cli-rpc-ops.c +++ b/cli/src/cli-rpc-ops.c @@ -500,7 +500,7 @@ gf_cli3_1_get_volume_cbk (struct rpc_req *req, struct iovec *iov, vol_type = type; // Distributed (stripe/replicate/raid01) setups - if ((type > 1) && ( sub_count < brick_count)) + if ((type > 0) && ( sub_count < brick_count)) vol_type = type + 3; cli_out ("Volume Name: %s", volname); -- cgit