diff options
author | shishir gowda <shishirng@gluster.com> | 2010-10-19 03:02:10 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-10-24 23:17:49 -0700 |
commit | 5ca019f339d76187f26757222084319cd1b28ad6 (patch) | |
tree | 56d746b2552b220b1d48de768c56356b26247bae /cli | |
parent | 54219ecf2ad344a55e974ff4b86a02408c9c17f2 (diff) |
Propogate rebalance already started error to cli
Signed-off-by: shishir gowda <shishirng@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 1882 (starting rebalance while previous rebalance is still running)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1882
Diffstat (limited to 'cli')
-rw-r--r-- | cli/src/cli3_1-cops.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/src/cli3_1-cops.c b/cli/src/cli3_1-cops.c index ee66b165f4e..9e1338cb3eb 100644 --- a/cli/src/cli3_1-cops.c +++ b/cli/src/cli3_1-cops.c @@ -770,6 +770,9 @@ gf_cli3_1_defrag_volume_cbk (struct rpc_req *req, struct iovec *iov, if (cmd == GF_DEFRAG_CMD_START) { cli_out ("starting rebalance on volume %s has been %s", volname, (rsp.op_ret) ? "unsuccessful": "successful"); + if (rsp.op_ret && rsp.op_errno == EEXIST) + cli_out ("Rebalance already started on volume %s", + volname); } if (cmd == GF_DEFRAG_CMD_STOP) { if (rsp.op_ret == -1) |