summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2010-10-05 07:48:21 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-10-05 07:50:28 -0700
commitef13a1046f72c993b8e053e5fc5f671e9bd2579b (patch)
treeecc60195506f936e0f596e76df217ad2efa4ace0 /cli
parent4c7ca7ec15760681703450dc9279a8c3cf8b98c0 (diff)
cli: fix Number of bricks output
Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1815 (gluster volume info - Number of Bricks field) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1815
Diffstat (limited to 'cli')
-rw-r--r--cli/src/cli3_1-cops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/src/cli3_1-cops.c b/cli/src/cli3_1-cops.c
index 69c19e75a53..81e7ed663f6 100644
--- a/cli/src/cli3_1-cops.c
+++ b/cli/src/cli3_1-cops.c
@@ -447,7 +447,7 @@ gf_cli3_1_get_volume_cbk (struct rpc_req *req, struct iovec *iov,
cli_out ("Volume Name: %s", volname);
cli_out ("Type: %s", cli_volume_type[vol_type]);
cli_out ("Status: %s", cli_volume_status[status], brick_count);
- if (sub_count > 1)
+ if ((sub_count > 1) && (brick_count > sub_count))
cli_out ("Number of Bricks: %d x %d = %d",
brick_count / sub_count, sub_count,
brick_count);