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

Hitoshi Mitake mitake.hitoshi at lab.ntt.co.jp
Mon Mar 11 12:46:34 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 3677405..f237a86 100644
--- a/include/internal_proto.h
+++ b/include/internal_proto.h
@@ -229,4 +229,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 5e0bfc0..86d8257 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