diff options
author | Vijay Bellur <vijay@gluster.com> | 2010-07-25 00:38:01 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-07-25 23:29:53 -0700 |
commit | 931a59e2b9130c6e748f2b7193cd0c2ac5a557bf (patch) | |
tree | 2d7e8f31c6865176c3d619646dfcaf3c84abd011 /xlators/mgmt/glusterd/src/glusterd-op-sm.h | |
parent | ea294f8fd967e8fc6e77558ecf1ab4fd298b7c4f (diff) |
DVM: bug fixes in cli and glusterd for probe, start volumev3.1.0qa2
Signed-off-by: Vijay Bellur <vijay@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 1187 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1187
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-op-sm.h')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-op-sm.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.h b/xlators/mgmt/glusterd/src/glusterd-op-sm.h index 500d0ebc344..4a619ba3ad2 100644 --- a/xlators/mgmt/glusterd/src/glusterd-op-sm.h +++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.h @@ -35,6 +35,7 @@ #include "fd.h" #include "byte-order.h" #include "glusterd.h" +#include "protocol-common.h" #define GD_VOLUME_NAME_MAX 256 @@ -112,6 +113,11 @@ struct glusterd_op_info_ { glusterd_op_t commit_op[GD_OP_MAX]; struct list_head op_peers; void *op_ctx[GD_OP_MAX]; + rpcsvc_request_t *req; + int32_t op_ret; + int32_t op_errno; + pthread_mutex_t lock; + int32_t cli_op; }; typedef struct glusterd_op_info_ glusterd_op_info_t; @@ -148,9 +154,10 @@ typedef struct glusterd_op_commit_ctx_ glusterd_op_commit_ctx_t; int glusterd_op_sm_new_event (glusterd_op_sm_event_type_t event_type, - glusterd_op_sm_event_t **new_event); + glusterd_op_sm_event_t **new_event); int -glusterd_op_sm_inject_event (glusterd_op_sm_event_t *event); +glusterd_op_sm_inject_event (glusterd_op_sm_event_type_t event_type, + void *ctx); int glusterd_op_sm_init (); @@ -181,4 +188,14 @@ glusterd_op_commit_perform (gd1_mgmt_stage_op_req *req); void * glusterd_op_get_ctx (glusterd_op_t op); + +int32_t +glusterd_op_set_req (rpcsvc_request_t *req); + +int32_t +glusterd_op_set_cli_op (gf_mgmt_procnum op); + +int32_t +glusterd_op_send_cli_response (int32_t op, int32_t op_ret, + int32_t op_errno, rpcsvc_request_t *req); #endif |