[Sheepdog] [PATCH v2] sheep: fix SD_FLAG_NOHALT collision

Liu Yuan namei.unix at gmail.com
Thu Feb 9 09:40:33 CET 2012


From: Liu Yuan <tailai.ly at taobao.com>

SD_FLAG_NOHALT and SD_FLAG_CMD_WRITE use the same value. This is wrong.
---
 include/sheep.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/sheep.h b/include/sheep.h
index 906c1f5..194c06d 100644
--- a/include/sheep.h
+++ b/include/sheep.h
@@ -59,7 +59,7 @@
 #define SD_RES_INVALID_CTIME 0x44 /* Creation time of sheepdog is different */
 #define SD_RES_INVALID_EPOCH 0x45 /* Invalid epoch */
 
-#define SD_FLAG_NOHALT       0x0001 /* Server the IO rquest even lack of nodes */
+#define SD_FLAG_NOHALT       0x0004 /* Serve the IO rquest even lack of nodes */
 
 struct sd_so_req {
 	uint8_t		proto_ver;
-- 
1.7.8.2




More information about the sheepdog mailing list