aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2022-11-04 15:43:37 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2022-11-04 15:43:37 +0000
commit20f3fcb175b72c06464965a4bce7d0a5eaef47b9 (patch)
tree8c41fd7b2b61e624620c3eb377c54c073a02cc99 /include
parent44e90986b1aea4296ba69198130fd37a9ffca082 (diff)
downloadsg3_utils-20f3fcb175b72c06464965a4bce7d0a5eaef47b9.tar.gz
add two new exit status values: SG_LIB_CAT_STANDBY and SG_LIB_CAT_UNAVAILABLE which refine the 'not ready' exit status
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@980 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'include')
-rw-r--r--include/sg_lib.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/sg_lib.h b/include/sg_lib.h
index e6a267d5..41545ee9 100644
--- a/include/sg_lib.h
+++ b/include/sg_lib.h
@@ -488,8 +488,8 @@ bool sg_exit2str(int exit_status, bool longer, int b_len, char * b);
#define SG_LIB_CAT_CLEAN 0 /* No errors or other information */
#define SG_LIB_OK_TRUE SG_LIB_CAT_CLEAN /* No error, reporting true */
/* Value 1 left unused for utilities to use SG_LIB_SYNTAX_ERROR */
-#define SG_LIB_CAT_NOT_READY 2 /* sense key, unit stopped?
- * [sk,asc,ascq: 0x2,*,*] */
+#define SG_LIB_CAT_NOT_READY 2 /* sense key: not ready, see 12 and 13
+ * [sk,asc,ascq: 0x2,<most>,<most>] */
#define SG_LIB_CAT_MEDIUM_HARD 3 /* medium or hardware error, blank check
* [sk,asc,ascq: 0x3/0x4/0x8,*,*] */
#define SG_LIB_CAT_ILLEGAL_REQ 5 /* Illegal request (other than invalid
@@ -505,6 +505,10 @@ bool sg_exit2str(int exit_status, bool longer, int b_len, char * b);
* [sk,asc,ascq: 0xa,*,*] */
#define SG_LIB_CAT_ABORTED_COMMAND 11 /* interpreted from sense buffer
* [sk,asc,ascq: 0xb,! 0x10,*] */
+#define SG_LIB_CAT_STANDBY 12 /* sense key: not ready, special case
+ * [sk,asc, ascq: 0x2, 0x4, 0xb] */
+#define SG_LIB_CAT_UNAVAILABLE 13 /* sense key: not ready, special case
+ * [sk,asc, ascq: 0x2, 0x4, 0xc] */
#define SG_LIB_CAT_MISCOMPARE 14 /* sense key, probably verify
* [sk,asc,ascq: 0xe,*,*] */
#define SG_LIB_FILE_ERROR 15 /* device or other file problem */