11.07.2015 Views

scsi interface specification - Plasmon

scsi interface specification - Plasmon

scsi interface specification - Plasmon

SHOW MORE
SHOW LESS

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

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

DRIVE COMMAND SETMEDIA SCAN (38H)The logical block address specifies the first logical block of the scan area.The Parameter List Length specifies the length in bytes of the parameter list that shall be transferredduring the DATA OUT phase. A parameter list length of zero indicates that the number of blocks requestedfield has a value of one and the number of blocks to scan field has a value of zero. This condition shall notbe considered an error.MEDIA SCAN Parameter ListBITBYTE7 6 5 4 3 2 1 000 Number of Blocks Requested (MSB)01 Number of Blocks Requested02 Number of Blocks Requested03 Number of Blocks Requested (LSB)04 Number of Blocks to Scan (MSB)05 Number of Blocks to Scan06 Number of Blocks to Scan07 Number of Blocks to Scan (LSB)Number of Blocks RequestedThe Number of Blocks Requested field specifies the number of blocks needed to meet the specifiedrequirements. The Number of Blocks Requested field, if set to zero, indicates that the scan shall not takeplace. This shall not be considered an error condition.Number of Blocks to ScanThe Number of Blocks to Scan field specifies the length in blocks of the area to be scanned on the media.The Number of Blocks to Scan field, if set to zero, specifies the length of the scan area to extend to themaximum LBA of the media.If the scan is satisfied, the command is terminated with a CONDITION MET status. A REQUEST SENSEcommand should then be issued.A REQUEST SENSE command following a satisfied MEDIA SCAN command shall:1) Return a Sense Key of EQUAL if the scan was satisfied by a contiguous set of blocks equal in sizeto the number of blocks requested. Return a Sense Key of NO SENSE if the PRA bit is set and thescan was satisfied by less than the Number of Blocks Requested.2) Return the valid bit set to one.3) Return the logical block address of the first logical block of the contiguous set of blocks that satisfiedthe scan criteria in the information bytes.4) Return the number of contiguous logical blocks meeting the scan criteria in the command specificinformation bytes.If the scan is not satisfied and no error occurs, the command is terminated with GOOD status. AREQUEST SENSE command may then be issued.A REQUEST SENSE command following an unsatisfied MEDIA SCAN command shall:1) Return a Sense Key of NO SENSE if no errors occurred during the command execution2) Return the valid bit set to zero97653978 HPage 67

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

Saved successfully!

Ooh no, something went wrong!