diff options
author | Amar Tumballi <amar@gluster.com> | 2011-09-07 12:46:30 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2011-09-09 02:20:23 -0700 |
commit | 85a2f0ec5021d53f34fe1630028f413835abd31e (patch) | |
tree | 88408f05e2cde7d7768a714eeed15685c498b391 /xlators/mgmt/glusterd/src/glusterd.h | |
parent | 77eb7bdfd02f2ba61847fb9c35e9e19e3da4fcc4 (diff) |
glusterd rebalance: make co-operate with all other 'op'
that way, we can share the rebalance state with other peers
and can prevent confusion/conflicts when multiple rebalances
are done by different peers.
Change-Id: I24159e69332644718df7314f6f1da7fce9ff740e
BUG: 2112
Reviewed-on: http://review.gluster.com/343
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd.h')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.h b/xlators/mgmt/glusterd/src/glusterd.h index 699c03c4b12..41fbe5faacd 100644 --- a/xlators/mgmt/glusterd/src/glusterd.h +++ b/xlators/mgmt/glusterd/src/glusterd.h @@ -78,6 +78,7 @@ typedef enum glusterd_op_ { GD_OP_QUOTA, GD_OP_LOG_LEVEL, GD_OP_STATUS_VOLUME, + GD_OP_REBALANCE, GD_OP_MAX, } glusterd_op_t; @@ -567,6 +568,8 @@ int glusterd_op_remove_brick (dict_t *dict); int glusterd_op_stage_add_brick (dict_t *dict, char **op_errstr); int glusterd_op_stage_remove_brick (dict_t *dict); +int glusterd_op_stage_rebalance (dict_t *dict, char **op_errstr); +int glusterd_op_rebalance (dict_t *dict, char **op_errstr, dict_t *rsp_dict); /* misc */ |