User Manual

SCSI Commands Reference Manual, Rev. J 273
www.seagate.com Direct Access Block commands (SPC-5 and SBC-4)
3.71 WRITE LONG (10) command
The WRITE LONG (10) command (see table 234) requests that the device server mark a logical block or physical block as
containing an error, or transfer data for a single logical block from the data-out buffer and write it to the medium. The data
written shall be the same length and shall be in the same order as the data returned by the READ LONG (10) command (see 3.26).
The device server shall write the logical block to the medium, and shall not return GOOD status until the logical block has
actually been written on the medium without error.
OPERATION CODE field
The OPERATION CODE field contains the operation code for this command and shall be set to the value defined in table 234.
WR_UNCOR bit
0 Obsolete
1 Mark the specified logical block as containing a pseudo unrecovered error with correction disabled (see SBC-4).
No data is transferred.
In the Extended INQUIRY Data VPD page (see 5.4.9), the WU_SUP bit shall be set to one if the WRITE LONG command is
supported.
LOGICAL BLOCK ADDRESS field
The LOGICAL BLOCK ADDRESS field (see 2.2.3) specifies an LBA. If the specified LBA exceeds the capacity of the medium, then the device server
shall terminate the command with CHECK CONDITION status with the sense key set to ILLEGAL REQUEST and the additional sense code set to
LOGICAL BLOCK ADDRESS OUT OF RANGE
BYTE TRANSFER LENGTH field
If table 234 defines that the value in the BYTE TRANSFER LENGTH field is used, then the BYTE TRANSFER LENGTH field specifies the number of
bytes of data that the device server shall transfer from the data-out buffer and write to the specified logical block or physical block. If the BYTE
TRANSFER LENGTH field is not set to zero and does not match the data length that the device server returns for a READ LONG command, then
the device server shall terminate the command with CHECK CONDITION status with the sense key set to ILLEGAL REQUEST and the additional
sense code set to INVALID FIELD IN CDB. In the sense data
(see 2.4), the ILI and VALID bits shall be set to one and the INFORMATION field shall
be set to the difference (i.e., residue) of the requested length minus the actual length in bytes. Negative values shall be indicated by two's com-
plement notation. If the BYTE TRANSFER LENGTH field is set to zero, then no bytes shall be written. This condition shall not be considered an
error.
Table 234 WRITE LONG (10) command
Bit
Byte
7 6 5 4 3 2 1 0
0
OPERATION CODE (3Fh)
1
Obsolete WR_UNCOR Obsolete Reserved Obsolete
2
(MSB)
LOGICAL BLOCK ADDRESS
. . .
5
(LSB)
6
Reserved
7
(MSB)
BYTE TRANSFER LENGTH
8
(LSB)
9
CONTROL