12.07.2015 Views

SCSI Primary Commands - 2.pdf

SCSI Primary Commands - 2.pdf

SCSI Primary Commands - 2.pdf

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

18 July 2001 T10/1236-D Revision 205.4.3.1 Foreground modeWhen a device server receives a SEND DIAGNOSTICS command specifying a self-test to be performed in theforeground mode, the device server shall return status for that command after the self-test has been completed.While performing a self-test in the foreground mode, the device server shall respond to all commands exceptINQUIRY, REPORT LUNS, and REQUEST SENSE with a CHECK CONDITION status, a sense key of NOTREADY and an additional sense code of LOGICAL UNIT NOT READY, SELF-TEST IN PROGRESS.If a device server is performing a self-test in the foreground mode and a test segment error occurs during the test,the device server shall update the self-test results log page (see 8.2.8) and report CHECK CONDITION status witha sense key of HARDWARE ERROR and an additional sense code of LOGICAL UNIT FAILED SELF-TEST. Theapplication client may obtain additional information about the failure by reading the self-test results log page. If thedevice server is unable to update the self-test results log page it shall return a CHECK CONDITION status with asense key of HARDWARE ERROR and an additional sense code of LOGICAL UNIT UNABLE TO UPDATESELF-TEST LOG.An application client should reserve the logical unit before initiating a self-test in the foreground mode. An applicationclient may terminate a self-test that is being performed in the foreground mode using an ABORT TASK,ABORT TASK SET, or CLEAR TASK SET task management function. If a task manager receives an ABORT TASK,ABORT TASK SET, or CLEAR TASK SET task management function while performing a self-test in the foregroundmode, then it shall abort the self-test and update the self-test results log page (see 8.2.8).5.4.3.2 Background modeWhen a device server receives a SEND DIAGNOSTICS command specifying a self-test to be performed in thebackground mode, the device server shall return status for that command as soon as the CDB has been validated.After returning status for the SEND DIAGNOSTICS command specifying a self-test to be performed in thebackground mode, the device server shall initialize the self-test results log page (see 8.2.8) as follows. Theself-test code from the SEND DIAGNOSTICS command shall be placed in the SELF-TEST CODE field in the log page.The SELF-TEST RESULTS field shall be set to Fh. After the self-test results log page is initialized, the device servershall begin the first self-test segment.While the device server is performing a self-test in the background mode, it shall terminate with a CHECKCONDITION status any SEND DIAGNOSTICS command it receives that meets one of the following criteria:a) The SELFTEST bit is one; orb) The SELF-TEST CODE field contains a value other than 000b or 100b.When terminating the SEND DIAGNOSTICS command, the sense key shall be set to NOT READY and theadditional sense code shall be set to LOGICAL UNIT NOT READY, SELF-TEST IN PROGRESS.dpANS <strong>SCSI</strong> <strong>Primary</strong> <strong>Commands</strong> - 2 (SPC-2) 21

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!