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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

T10/1236-D Revision 20 18 July 20017.6 MODE SELECT(6) commandThe MODE SELECT(6) command (see table 60) provides a means for the application client to specify medium,logical unit, or peripheral device parameters to the device server. Device servers that implement the MODESELECT(6) command shall also implement the MODE SENSE(6) command. Application clients should issueMODE SENSE(6) prior to each MODE SELECT(6) to determine supported pages, page lengths, and other parameters.Table 60 — MODE SELECT(6) commandBitByte7 6 5 4 3 2 1 00 OPERATION CODE (15h)1 Reserved PF Reserved SP2 Reserved3 Reserved4 PARAMETER LIST LENGTH5 CONTROLIf a target supports saved pages, it may save only one copy of the page for each logical unit and have it apply to allinitiators, or it may save separate copies for each initiator for each logical unit. Multiple port implementations maysave one copy per logical unit and have it apply to all initiators on all ports or save a separate copy per logical unitfor each initiator on each port. If separate copies are saved, the target shall maintain separate current values foreach combination of initiator and logical unit that it detects. Pages that are common to all initiators are not requiredto have multiple copies.If an application client sends a MODE SELECT command that changes any parameters applying to other initiators,the device server shall generate a unit attention condition for all initiators except the one that issued the MODESELECT command (see SAM-2). The device server shall set the additional sense code to MODE PARAMETERSCHANGED.The target may provide for independent sets of parameters for each attached logical unit or for each combination oflogical unit and initiator. If independent sets of parameters are implemented, and a third-party reservation isrequested, the device server shall transfer the set of parameters in effect for the initiator that sent the RESERVEcommand to the parameters used for commands from the third-party device (see 7.21.3).A page format (PF) bit of zero indicates that all parameters after the block descriptors are vendor specific. A PF bitof one indicates that the MODE SELECT parameters following the header and block descriptor(s) are structured aspages of related parameters and are as specified in this standard.A save pages (SP) bit of zero indicates the device server shall perform the specified MODE SELECT operation, andshall not save any pages. If the target implements no distinction between current and saved pages and the SP bit iszero, the command shall be terminated with CHECK CONDITION status. The sense key shall be set to ILLEGALREQUEST, and the additional sense code set to INVALID FIELD IN CDB. An SP bit of one indicates that the deviceserver shall perform the specified MODE SELECT operation, and shall save to a nonvolatile vendor specificlocation all the savable pages including any sent in the Data-Out Buffer. The SP bit is optional, even when modepages are supported by the target. Pages that are saved are identified by the parameter savable bit that is returnedin the page header by the MODE SENSE command (see 8.3). If the PS bit is set to one in the MODE SENSE datathen the page shall be savable by issuing a MODE SELECT command with the SP bit set to one. If the target doesnot implement saved pages and the SP bit is set to one, the command shall be terminated with CHECK98 dpANS <strong>SCSI</strong> <strong>Primary</strong> <strong>Commands</strong> - 2 (SPC-2)

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

Saved successfully!

Ooh no, something went wrong!