[stgt] [PATCH 2/5 RESEND] mgmt and concat_buf: define tgtadm_err, add error values to tgtadm_error.h

Alexander Nezhinsky alexandern at mellanox.com
Wed Feb 1 14:42:46 CET 2012


Using concat_buf api highlights some problems with tgtadm return codes,
this prepares a base for the fixes.

Signed-off-by: Alexander Nezhinsky <alexandern at mellanox.com>
---
 usr/tgtadm_error.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/usr/tgtadm_error.h b/usr/tgtadm_error.h
index 4cd8f81..a1f38b0 100644
--- a/usr/tgtadm_error.h
+++ b/usr/tgtadm_error.h
@@ -11,8 +11,10 @@ enum tgtadm_errno {
 	TGTADM_NO_LUN,
 	TGTADM_NO_SESSION,
 	TGTADM_NO_CONNECTION,
+	TGTADM_NO_BINDING,
 	TGTADM_TARGET_EXIST,
 	TGTADM_LUN_EXIST,
+	TGTADM_BINDING_EXIST,
 
 	TGTADM_ACL_EXIST,
 	TGTADM_ACL_NOEXIST,
@@ -28,4 +30,6 @@ enum tgtadm_errno {
 	TGTADM_UNKNOWN_PARAM,
 };
 
+typedef enum tgtadm_errno tgtadm_err;
+
 #endif
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list