From ef13a1046f72c993b8e053e5fc5f671e9bd2579b Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Tue, 5 Oct 2010 07:48:21 +0000 Subject: cli: fix Number of bricks output Signed-off-by: Amar Tumballi Signed-off-by: Vijay Bellur BUG: 1815 (gluster volume info - Number of Bricks field) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1815 --- cli/src/cli3_1-cops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli') 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); -- cgit