[sheepdog] [PATCH v6 2/4] move enum cluster_join_result from sheep/cluster.h to include/internal_proto.h

Hitoshi Mitake mitake.hitoshi at lab.ntt.co.jp
Thu Jan 17 03:25:11 CET 2013


enum cluster_join_result is also used by shepherd. So this patch
moves it from sheep/ to include/.

Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
---
 include/internal_proto.h |   10 ++++++++++
 sheep/cluster.h          |   10 ----------
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/include/internal_proto.h b/include/internal_proto.h
index 364a478..7898ce4 100644
--- a/include/internal_proto.h
+++ b/include/internal_proto.h
@@ -228,4 +228,14 @@ struct vdi_op_message {
 	uint8_t data[0];
 };
 
+enum cluster_join_result {
+	CJ_RES_SUCCESS, /* Success */
+	CJ_RES_FAIL, /* Fail to join.  The joining node has an invalidepoch. */
+	CJ_RES_JOIN_LATER, /* Fail to join.  The joining node should
+			    * be added after the cluster start working. */
+	CJ_RES_MASTER_TRANSFER, /* Transfer mastership.  The joining
+				 * node has a newer epoch, so this node
+				 * will leave the cluster (restart later). */
+};
+
 #endif /* __INTERNAL_PROTO_H__ */
diff --git a/sheep/cluster.h b/sheep/cluster.h
index a928bb1..e8d22dd 100644
--- a/sheep/cluster.h
+++ b/sheep/cluster.h
@@ -26,16 +26,6 @@
 /* maximum payload size sent in ->notify and ->unblock */
 #define SD_MAX_EVENT_BUF_SIZE (128 * 1024) /* 128k */
 
-enum cluster_join_result {
-	CJ_RES_SUCCESS, /* Success */
-	CJ_RES_FAIL, /* Fail to join.  The joining node has an invalidepoch. */
-	CJ_RES_JOIN_LATER, /* Fail to join.  The joining node should
-			    * be added after the cluster start working. */
-	CJ_RES_MASTER_TRANSFER, /* Transfer mastership.  The joining
-				 * node has a newer epoch, so this node
-				 * will leave the cluster (restart later). */
-};
-
 struct cluster_driver {
 	const char *name;
 
-- 
1.7.2.5




More information about the sheepdog mailing list