diff options
author | Avra Sengupta <asengupt@redhat.com> | 2013-10-08 21:36:06 +0530 |
---|---|---|
committer | shishir gowda <sgowda@redhat.com> | 2013-11-15 12:37:58 +0530 |
commit | 7f8480fa85347d37b4dfd2adef71599f70119ace (patch) | |
tree | 79d7a2e2bc3717df5d44ad7786afca3f88d9e339 /xlators/mgmt/glusterd/src/glusterd-rpc-ops.c | |
parent | f8a158134d89b25063b059cd4241ffc84c48f469 (diff) |
glusterd/mgmt_v3: Initating complete synctask on glusterd
glusterd mgmt_v3 is nothing but a complete synctask approach
for glusterd to function. The commands making use of this
won't be using the op-state machine to inject events and
will be using the synctask framework to perform operations
across all nodes in the cluster. This patch defines the
program and the handlers used.
Change-Id: Ibff2c62b0187c40cdea7254c85786297bba60372
Signed-off-by: Avra Sengupta <asengupt@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-rpc-ops.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-rpc-ops.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c b/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c index 12ee4981c..821da33be 100644 --- a/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c +++ b/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c @@ -650,7 +650,7 @@ static int32_t glusterd_vol_lock_cbk_fn (struct rpc_req *req, struct iovec *iov, int count, void *myframe) { - gd1_mgmt_volume_lock_rsp rsp = {{0},}; + gd1_mgmt_v3_vol_lock_rsp rsp = {{0},}; int ret = -1; int32_t op_ret = -1; glusterd_op_sm_event_type_t event_type = GD_OP_EVENT_NONE; @@ -669,7 +669,7 @@ glusterd_vol_lock_cbk_fn (struct rpc_req *req, struct iovec *iov, } ret = xdr_to_generic (*iov, &rsp, - (xdrproc_t)xdr_gd1_mgmt_volume_lock_rsp); + (xdrproc_t)xdr_gd1_mgmt_v3_vol_lock_rsp); if (ret < 0) { gf_log (this->name, GF_LOG_ERROR, "Failed to decode volume lock " @@ -728,7 +728,7 @@ static int32_t glusterd_vol_unlock_cbk_fn (struct rpc_req *req, struct iovec *iov, int count, void *myframe) { - gd1_mgmt_volume_unlock_rsp rsp = {{0},}; + gd1_mgmt_v3_vol_unlock_rsp rsp = {{0},}; int ret = -1; int32_t op_ret = -1; glusterd_op_sm_event_type_t event_type = GD_OP_EVENT_NONE; @@ -747,7 +747,7 @@ glusterd_vol_unlock_cbk_fn (struct rpc_req *req, struct iovec *iov, } ret = xdr_to_generic (*iov, &rsp, - (xdrproc_t)xdr_gd1_mgmt_volume_unlock_rsp); + (xdrproc_t)xdr_gd1_mgmt_v3_vol_unlock_rsp); if (ret < 0) { gf_log (this->name, GF_LOG_ERROR, "Failed to decode volume unlock " @@ -1398,7 +1398,7 @@ int32_t glusterd_vol_lock (call_frame_t *frame, xlator_t *this, void *data) { - gd1_mgmt_volume_lock_req req = {{0},}; + gd1_mgmt_v3_vol_lock_req req = {{0},}; int ret = -1; glusterd_peerinfo_t *peerinfo = NULL; glusterd_conf_t *priv = NULL; @@ -1438,7 +1438,7 @@ glusterd_vol_lock (call_frame_t *frame, xlator_t *this, peerinfo->mgmt_v3, GLUSTERD_MGMT_V3_VOLUME_LOCK, NULL, this, glusterd_vol_lock_cbk, - (xdrproc_t)xdr_gd1_mgmt_volume_lock_req); + (xdrproc_t)xdr_gd1_mgmt_v3_vol_lock_req); out: gf_log (this->name, GF_LOG_DEBUG, "Returning %d", ret); return ret; @@ -1448,7 +1448,7 @@ int32_t glusterd_vol_unlock (call_frame_t *frame, xlator_t *this, void *data) { - gd1_mgmt_volume_unlock_req req = {{0},}; + gd1_mgmt_v3_vol_unlock_req req = {{0},}; int ret = -1; glusterd_peerinfo_t *peerinfo = NULL; glusterd_conf_t *priv = NULL; @@ -1488,7 +1488,7 @@ glusterd_vol_unlock (call_frame_t *frame, xlator_t *this, peerinfo->mgmt_v3, GLUSTERD_MGMT_V3_VOLUME_UNLOCK, NULL, this, glusterd_vol_unlock_cbk, - (xdrproc_t)xdr_gd1_mgmt_volume_unlock_req); + (xdrproc_t)xdr_gd1_mgmt_v3_vol_unlock_req); out: gf_log (this->name, GF_LOG_DEBUG, "Returning %d", ret); return ret; |