From 5ca019f339d76187f26757222084319cd1b28ad6 Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Tue, 19 Oct 2010 03:02:10 +0000 Subject: Propogate rebalance already started error to cli Signed-off-by: shishir gowda Signed-off-by: Anand V. Avati BUG: 1882 (starting rebalance while previous rebalance is still running) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1882 --- xlators/mgmt/glusterd/src/glusterd-rebalance.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/mgmt') diff --git a/xlators/mgmt/glusterd/src/glusterd-rebalance.c b/xlators/mgmt/glusterd/src/glusterd-rebalance.c index f3c5b9591..b1eed6419 100644 --- a/xlators/mgmt/glusterd/src/glusterd-rebalance.c +++ b/xlators/mgmt/glusterd/src/glusterd-rebalance.c @@ -412,6 +412,7 @@ glusterd_handle_defrag_volume (rpcsvc_request_t *req) gf_log ("glusterd", GF_LOG_DEBUG, "rebalance on volume %s already started", cli_req.volname); + rsp.op_errno = EEXIST; goto out; } -- cgit