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 20CONDITION status. The sense key shall be set to ILLEGAL REQUEST, and the additional sense code set toINVALID FIELD IN CDB.The PARAMETER LIST LENGTH field specifies the length in bytes of the mode parameter list that shall be contained inthe Data-Out Buffer. A parameter list length of zero indicates that the Data-Out Buffer shall be empty. Thiscondition shall not be considered as an error.The device server shall terminate the command with CHECK CONDITION status if the parameter list length resultsin the truncation of any mode parameter header, mode parameter block descriptor(s), or mode page. The sensekey shall be set to ILLEGAL REQUEST, and the additional sense code shall be set to PARAMETER LIST LENGTHERROR.The mode parameter list for the MODE SELECT and MODE SENSE commands is defined in 8.3. Parts of eachmode parameter list are defined in a device-type dependent manner. Definitions for the parts of each modeparameter list that are uniquely for each device-type may be found in the applicable command standards (see3.1.12).The device server shall terminate the MODE SELECT command with CHECK CONDITION status, set the sensekey to ILLEGAL REQUEST, set the additional sense code to INVALID FIELD IN PARAMETER LIST, and shall notchange any mode parameters for the following conditions:a) If the application client sets any field that is reported as not changeable by the device server to a valueother than its current value;b) If the application client sets any field in the mode parameter header or block descriptor(s) to an unsupportedvalue;c) If an application client sends a mode page with a page length not equal to the page length returned by theMODE SENSE command for that page;d) If the application client sends a unsupported value for a mode parameter and rounding is not implementedfor that mode parameter; ore) If the application client sets any reserved field in the mode parameter list to a non-zero value.If the application client sends a value for a mode parameter that is outside the range supported by the deviceserver and rounding is implemented for that mode parameter, the device server handles the condition by either:a) rounding the parameter to an acceptable value and terminate the command as described in 5.3; orb) terminating the command with CHECK CONDITION status, the sense key set to ILLEGAL REQUEST, andset the additional sense code to INVALID FIELD IN PARAMETER LIST.A device server may alter any mode parameter in any mode page, even those reported as non-changeable, as aresult of changes to other mode parameters.The device server validates the non-changeable mode parameters against the current values that existed for thosemode parameters prior to the MODE SELECT command.NOTE 21 The current values calculated by the device server may affect the application client's operation. Theapplication client may issue a MODE SENSE command after each MODE SELECT command, to determine thecurrent values.7.7 MODE SELECT(10) commandThe MODE SELECT(10) command (see table 61) provides a means for the application client to specify medium,logical unit, or peripheral device parameters to the device server. See the MODE SELECT(6) command (7.6) for adpANS <strong>SCSI</strong> <strong>Primary</strong> <strong>Commands</strong> - 2 (SPC-2) 99

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

Saved successfully!

Ooh no, something went wrong!