summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-lib/src
diff options
context:
space:
mode:
authorAvra Sengupta <asengupt@redhat.com>2013-10-08 21:36:06 +0530
committerAvra Sengupta <asengupt@redhat.com>2013-10-10 14:35:44 +0530
commit63ff355ccd2e5fa7402963203046c0aa2608d5a5 (patch)
tree83f4b8174860c20c757ce87b77827b88a93ff90c /rpc/rpc-lib/src
parent4b466674ebf6c192cb1ce17b367fb9845c68129d (diff)
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 <asengupt@redhat.com>
Diffstat (limited to 'rpc/rpc-lib/src')
-rw-r--r--rpc/rpc-lib/src/protocol-common.h15
1 files changed, 15 insertions, 0 deletions
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 */