aboutsummaryrefslogtreecommitdiff
path: root/doc/sg_turs.8
diff options
context:
space:
mode:
Diffstat (limited to 'doc/sg_turs.8')
-rw-r--r--doc/sg_turs.816
1 files changed, 10 insertions, 6 deletions
diff --git a/doc/sg_turs.8 b/doc/sg_turs.8
index bc6b4fde..bec99f59 100644
--- a/doc/sg_turs.8
+++ b/doc/sg_turs.8
@@ -1,4 +1,4 @@
-.TH SG_TURS "8" "July 2020" "sg3_utils\-1.46" SG3_UTILS
+.TH SG_TURS "8" "November 2022" "sg3_utils\-1.48" SG3_UTILS
.SH NAME
sg_turs \- send one or more SCSI TEST UNIT READY commands
.SH SYNOPSIS
@@ -96,10 +96,14 @@ polling the progress indication. More recent standards seem to suggest
the SCSI REQUEST SENSE command should be used instead.
.SH EXIT STATUS
The exit status of sg_turs is 0 when it is successful (e.g. in the case of
-a mechanical disk, it is spun up and ready to accept commands). For this
-utility the other exit status of interest is 2 corresponding to
-the "not ready" sense key. For other exit status values see the sg3_utils(8)
-man page.
+a mechanical disk, it is spun up and ready to accept IO commands). For this
+utility the other exit status values of interest are 2, 12 and 13. 12 is for
+the case when the sense key is "not ready" [0x2] and the additional sense
+code ends with "Target port in standby state" [0x4, 0xb]. 13 is for the
+case when the sense key is "not ready" [0x2] and the additional sense code
+is "Target port in unavailable state" [0x4, 0xc]. All other cases when
+the sense key is "not ready" [0x2] will set the exit status to 2.
+For other exit status values see the sg3_utils(8) man page.
.SH OLDER COMMAND LINE OPTIONS
The options in this section were the only ones available prior to sg3_utils
version 1.23 . Since then this utility defaults to the newer command line
@@ -140,7 +144,7 @@ using \fI\-\-old\fR (or \fI\-O\fR) as the first command line option.
.SH AUTHORS
Written by D. Gilbert
.SH COPYRIGHT
-Copyright \(co 2000\-2020 Douglas Gilbert
+Copyright \(co 2000\-2022 Douglas Gilbert
.br
This software is distributed under the GPL version 2. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.