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.

T10/1236-D Revision 20 18 July 20017.2.7.3 Block device to stream device operationsThe segment descriptor format shown in table 31 is used by the copy operations that move data from a blockdevice to a stream device or vice versa.Table 31 — Block device to or from stream device segment descriptorBitByte7 6 5 4 3 2 1 00 DESCRIPTOR TYPE CODE (00h, 01h, 0Bh, or 0Ch)1 Reserved CAT2 (MSB)DESCRIPTOR LENGTH (0014h)3 (LSB)4 (MSB)SOURCE TARGET DESCRIPTOR INDEX5 (LSB)6 (MSB)DESTINATION TARGET DESCRIPTOR INDEX7 (LSB)8 Reserved9 (MSB)10STREAM DEVICE TRANSFER LENGTH11 (LSB)12 Reserved13 Reserved14 (MSB)BLOCK DEVICE NUMBER OF BLOCKS15 (LSB)16 (MSB)BLOCK DEVICE LOGICAL BLOCK ADDRESS23 (LSB)The DESCRIPTOR TYPE CODE field is described in 7.2.5 and 7.2.7.1. Two DESCRIPTOR TYPE CODE values use thesegment descriptor format shown in table 31 and described in this subclause.For descriptor type code 00h (block→stream) or descriptor type code 0Bh (block→stream+application client), thecopy manager shall copy the data from the source block device identified by the SOURCE TARGET DESCRIPTOR INDEXfield to the destination stream device identified by the DESTINATION TARGET DESCRIPTOR INDEX field using the logicalblocks starting at the location identified by the BLOCK DEVICE LOGICAL BLOCK ADDRESS field. As many blocks shall beread as necessary to process (see 7.2.7.2) a number of bytes equal to the contents of the DISK BLOCK LENGTH fieldin the target descriptor for the source device times the contents of the BLOCK DEVICE NUMBER OF BLOCKS field. Thedata shall be written to the stream device starting at the current position of the media.For descriptor type code 0Bh (block→stream+application client), the copy manager also shall hold a copy of theprocessed data for delivery to the application client upon completion of the EXTENDED COPY command inresponse to a RECEIVE COPY RESULTS command with RECEIVE DATA service action as described in 7.14.3.The minimum amount of held data supported by the copy manager is returned in the response data for theRECEIVE COPY RESULTS command with OPERATING PARAMETERS service action (see 7.14.4). If the copymanager supports the 0Bh descriptor type code it also shall support the RECEIVE COPY RESULTS commandwith RECEIVE DATA service action.62 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!