diff options
| author | Amar Tumballi <amar@gluster.com> | 2010-09-07 09:30:29 +0000 | 
|---|---|---|
| committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-07 09:41:22 -0700 | 
| commit | ed561b78d9837b9f799ebb410bcc26b7e5413f33 (patch) | |
| tree | a618ea9459b83d454df2dbf00b5f330fe966f51d /cli | |
| parent | 266df1a7d660dc0b824e6e60903536aff9242f4b (diff) | |
glusterd: rebalance fixes
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1481 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1481
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/src/cli3_1-cops.c | 11 | 
1 files changed, 8 insertions, 3 deletions
diff --git a/cli/src/cli3_1-cops.c b/cli/src/cli3_1-cops.c index 064845087b8..a88d0c6957f 100644 --- a/cli/src/cli3_1-cops.c +++ b/cli/src/cli3_1-cops.c @@ -611,9 +611,14 @@ gf_cli3_1_defrag_volume_cbk (struct rpc_req *req, struct iovec *iov,                          if (rsp.op_errno == 4)                                  status = "failed"; -                        cli_out ("rebalance %s: rebalanced %"PRId64" files of size %"PRId64 -                                 " (total files scanned %"PRId64")", status, -                                 rsp.files, rsp.size, rsp.lookedup_files); +                        if (rsp.files) { +                                cli_out ("rebalance %s: rebalanced %"PRId64 +                                         " files of size %"PRId64" (total files" +                                         " scanned %"PRId64")", status, +                                         rsp.files, rsp.size, rsp.lookedup_files); +                        } else { +                                cli_out ("rebalance %s", status); +                        }                  }          }  | 
