Transfer commands like WRITE and READ contain a logical block address and a transfer length. The transfer direction is indicated by the command type.
Parameter commands like MODE SENSE, MODE SELECT, INQUIRY, and REPORT LUNS contain an allocation length or parameter length. The allocation length is the amount of space allocated by the initiator for return "input" data. The parameter length is the amount of incoming "output" data. The direction of transfer is indicated by which length field is non-zero. For example, a command with non-zero parameter length is sending data from the initiator to the target and the allocation length field will be zero; a command with non-zero allocation length is receiving data from the target to the initiator and the parameter length field will be zero. A command with both zero fields transmits no data.
Commands which do not require data transfer such as TEST UNIT READY will implement only this interface.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|