From 63ff355ccd2e5fa7402963203046c0aa2608d5a5 Mon Sep 17 00:00:00 2001 From: Avra Sengupta Date: Tue, 8 Oct 2013 21:36:06 +0530 Subject: glusterd/Jarvis: Initating complete synctask on glusterd Jarvis 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 --- rpc/rpc-lib/src/protocol-common.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'rpc/rpc-lib/src') diff --git a/rpc/rpc-lib/src/protocol-common.h b/rpc/rpc-lib/src/protocol-common.h index de9b7422b..1c020ae92 100644 --- a/rpc/rpc-lib/src/protocol-common.h +++ b/rpc/rpc-lib/src/protocol-common.h @@ -223,6 +223,17 @@ typedef enum { GF_BD_OP_SNAPSHOT_BD, } gf_xl_bd_op_t ; +enum glusterd_jarvis_mgmt_procnum { + GLUSTERD_JARVIS_NULL, /* 0 */ + GLUSTERD_JARVIS_VOLUME_LOCK, + GLUSTERD_JARVIS_PRE_VALIDATE, + GLUSTERD_JARVIS_BRICK_OP, + GLUSTERD_JARVIS_COMMIT, + GLUSTERD_JARVIS_POST_VALIDATE, + GLUSTERD_JARVIS_VOLUME_UNLOCK, + GLUSTERD_JARVIS_MAXVALUE, +}; + #define GLUSTER_HNDSK_PROGRAM 14398633 /* Completely random */ #define GLUSTER_HNDSK_VERSION 2 /* 0.0.2 */ @@ -253,4 +264,8 @@ typedef enum { #define GD_MGMT_HNDSK_PROGRAM 1239873 /* Completely random */ #define GD_MGMT_HNDSK_VERSION 1 +/* Jarvis Protocols */ +#define GD_JARVIS_MGMT_PROGRAM 8102013 /* Completely random */ +#define GD_JARVIS_MGMT_VERSION 1 + #endif /* !_PROTOCOL_COMMON_H */ -- cgit