From a13bc5aab51ae0e03721c48c8eb98b08c6137872 Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Mon, 13 Sep 2010 07:54:30 +0000 Subject: Print error msg to the CLI from glusterd Signed-off-by: shishir gowda Signed-off-by: Vijay Bellur BUG: 1180 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1180 --- xlators/mgmt/glusterd/src/glusterd-op-sm.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'xlators/mgmt/glusterd/src/glusterd-op-sm.h') diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.h b/xlators/mgmt/glusterd/src/glusterd-op-sm.h index 930224a92..66435c8d2 100644 --- a/xlators/mgmt/glusterd/src/glusterd-op-sm.h +++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.h @@ -123,6 +123,7 @@ struct glusterd_op_info_ { pthread_mutex_t lock; int32_t cli_op; gf_boolean_t ctx_free[GD_OP_MAX]; + char *op_errstr; }; typedef struct glusterd_op_info_ glusterd_op_info_t; @@ -191,10 +192,10 @@ int glusterd_op_build_payload (glusterd_op_t op, gd1_mgmt_stage_op_req **req); int32_t -glusterd_op_stage_validate (gd1_mgmt_stage_op_req *req); +glusterd_op_stage_validate (gd1_mgmt_stage_op_req *req, char **op_errstr); int32_t -glusterd_op_commit_perform (gd1_mgmt_stage_op_req *req); +glusterd_op_commit_perform (gd1_mgmt_stage_op_req *req, char **op_errstr); void * glusterd_op_get_ctx (glusterd_op_t op); @@ -208,7 +209,7 @@ 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, - void *ctx); + void *ctx, char *op_errstr); int32_t glusterd_op_get_op (); -- cgit