summaryrefslogtreecommitdiffstats
path: root/cli/src/cli-rpc-ops.c
diff options
context:
space:
mode:
authorRahul <rahul@gluster.com>2011-07-12 13:47:51 +0000
committerAnand Avati <avati@gluster.com>2011-07-13 03:00:10 -0700
commite89725cd62430addf09d9c1afbfb07d8c86b9ef0 (patch)
tree9600a0495e1a76558774ff1b69ecd5897c35aa38 /cli/src/cli-rpc-ops.c
parent7c4ad6d3321cc440590a6132b7dc8d0d0a58ce3b (diff)
Check type for a value greater than Distribute and not for stripe
Signed-off-by: Rahul <rahul@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 3161 ([818f8c87d56bc46d0d0903275699351b66f17e57] Volume type incorrect.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3161
Diffstat (limited to 'cli/src/cli-rpc-ops.c')
-rw-r--r--cli/src/cli-rpc-ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c
index 92e5a32cc44..18958ab986a 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);