[sheepdog] [PATCH] sheep: revert a part of the changes for internal res code

Teruaki Ishizaki tell.ishi at gmail.com
Mon Apr 27 03:20:28 CEST 2015


SD_RES_INODE_INVALIDATED response code is used by tgtd and,
previous change broke compatibility with tgtd.
It caused errors when active path was down with using
iSCSI multipath.

This patch reverts a part of previous commit
for SD_RES_INODE_INVALIDATED.

Signed-off-by: Teruaki Ishizaki <tell.ishi at gmail.com>
---
 include/internal_proto.h |    2 --
 include/sheepdog_proto.h |    2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/internal_proto.h b/include/internal_proto.h
index 3a370b6..a1a073d 100644
--- a/include/internal_proto.h
+++ b/include/internal_proto.h
@@ -147,8 +147,6 @@
 #define SD_RES_INCOMPLETE    0x94 /* Object (in kv) is incomplete uploading */
 /* sheep is collecting cluster wide status, not ready for operation */
 #define SD_RES_COLLECTING_CINFO 0x95
-/* inode object in client is invalidated, refreshing is required */
-#define SD_RES_INODE_INVALIDATED 0x96
 #define SD_RES_GATEWAY_MODE  0x97 /* Target node is gateway mode */
 #define SD_RES_INVALID_VNODES_STRATEGY 0x98 /* Invalid vnodes strategy */
 
diff --git a/include/sheepdog_proto.h b/include/sheepdog_proto.h
index 20f3b71..4a6edbe 100644
--- a/include/sheepdog_proto.h
+++ b/include/sheepdog_proto.h
@@ -83,6 +83,8 @@
 #define SD_RES_JOIN_FAILED   0x18 /* Target node had failed to join sheepdog */
 #define SD_RES_HALT          0x19 /* Sheepdog is stopped doing IO */
 #define SD_RES_READONLY      0x1A /* Object is read-only */
+/* inode object in client is invalidated, refreshing is required */
+#define SD_RES_INODE_INVALIDATED 0x1D
 
 /* errors above 0x80 are sheepdog-internal */
 
-- 
1.7.1




More information about the sheepdog mailing list