WRITE (6) COMMAND (0Ah)
The WRITE (6) command requests that the target write the data transferred by the initiator to the medium. The logical block address field specifies the logical block at which the write operation shall begin. The transfer length field specifies the number of contiguous logical blocks of data to transfer. A transfer length of zero indicates that 256 logical blocks shall be transferred. Any other value indicates the number of logical blocks that shall be transferred. Byte 5 is ignored.
Table 16. Write (6) CDB
Bit | 7 | 6 | 5 | 4 |
| 3 |
| 2 | 1 | 0 |
Byte |
|
| ||||||||
|
|
|
|
|
|
|
|
|
| |
0 |
|
|
| Operation Code (0Ah) |
|
|
| |||
|
|
|
|
|
|
|
|
| ||
1 | Logical Unit Number (RSVD) | (MSB) |
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
2 |
|
| Logical Block Address |
|
|
| ||||
|
|
|
|
|
| |||||
3 |
|
|
|
| (LSB) | |||||
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
| |||
4 |
|
|
| Transfer Length |
|
|
| |||
|
|
|
|
|
|
|
|
| ||
5 |
|
|
|
| Control |
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
INQUIRY COMMAND (12h)
The INQUIRY command requests that information regarding parameters of the drive be sent to the initiator. Byte 5 is ignored. See Tables 17 and 18.
|
|
| Table 17. | Inquiry CDB |
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
Bit | 7 | 6 | 5 | 4 |
| 3 |
| 2 | 1 | 0 |
Byte |
|
| ||||||||
|
|
|
|
|
|
|
|
|
| |
0 |
|
|
| Operation Code (12h) |
|
|
| |||
|
|
|
|
|
|
|
|
| ||
1 | Logical Unit Number (RSVD) |
|
| Reserved |
|
| EVPD | |||
|
|
|
|
|
|
|
|
|
| |
2 |
|
|
| Page Code |
|
|
| |||
|
|
|
|
|
|
|
|
| ||
3 |
|
|
|
| Reserved |
|
|
| ||
|
|
|
|
|
|
|
| |||
4 |
|
|
| Allocation Length |
|
|
| |||
|
|
|
|
|
|
|
|
| ||
5 |
|
|
|
| Control |
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
An Enable Vital Product Data (EVPD) bit of one specifies that the drive return the optional vital product data specified by the page code field. If any optional fields in the CDB are set that the drive does not support, it will return a CHECK CONDITION status with the sense key set to ILLEGAL REQUEST and an additional sense code of INVALID FIELD IN CDB.
ZeusIOPS | 41 |