User Manual

SCSI Commands Reference Manual, Rev. J 279
www.seagate.com Direct Access Block commands (SPC-5 and SBC-4)
3.75 WRITE SAME (32) command
The WRITE SAME (32) command (see table 239) requests that the device server transfer a single logical block from the data-out
buffer and write the contents of that logical block. Each logical block includes user data and may include protection information,
based on the WRPROTECT field and the medium format.
See the WRITE SAME (10) command (see 3.73) for the definition of the function of this command.
OPERATION CODE, ADDITIONAL CDB LENGTH, and SERVICE ACTION fields
The OPERATION CODE field, the ADDITIONAL CDB LENGTH field, and the SERVICE ACTION field are defined in 2.2 and shall be set to the values
shown in table 239 for the WRITE SAME (32) command.
See the WRITE SAME (10) command (see 3.73) for the definitions of the GROUP NUMBER field, the WRPROTECT field, the ANCHOR bit, the
UNMAP bit, the NDOB bit, the LOGICAL BLOCK ADDRESS field, and the NUMBER OF BLOCKS field.
LOGICAL BLOCK REFERENCE TAG field
When checking of the LOGICAL BLOCK REFERENCE TAG field is enabled (see 3.73), the EXPECTED INITIAL LOGICAL BLOCK REFERENCE TAG field
contains the value of the LOGICAL BLOCK REFERENCE TAG field expected in the protection information of the first logical block accessed by the
command instead of a value based on the LBA (see SBC-4).
ATO bit, LOGICAL BLOCK APPLICATION TAG field and EXPECTED LOGICAL BLOCK APPLICATION TAG field
If the ATO bit is set to one in the Control mode page (see 5.3.12) and checking of the LOGICAL BLOCK APPLICATION TAG field is enabled (see
table 217), then the LOGICAL BLOCK APPLICATION TAG MASK field contains a value that is a bit mask for enabling the checking of the LOGICAL
BLOCK APPLICATION TAG field in every instance of protection information for each logical block accessed by the command. A LOGICAL BLOCK
Table 239 WRITE SAME (32) command
Bit
Byte
7 6 5 4 3 2 1 0
0 OPERATION CODE (7Fh)
1 CONTROL
2
Reserved. . .
5
6 Reserved GROUP NUMBER
7 ADDITIONAL CDB LENGTH (18h)
8 (MSB)
SERVICE ACTION (000Dh)
9 (LSB)
10 WRPROTECT ANCHOR UNMAP Obsolete Obsolete NDOB
11 Reserved
12 (MSB)
LOGICAL BLOCK ADDRESS. . .
19 (LSB)
20 (MSB)
EXPECTED INITIAL LOGICAL BLOCK REFERENCE TAG. . .
23 (LSB)
24 (MSB)
EXPECTED LOGICAL BLOCK APPLICATION TAG
25 (LSB)
26 (MSB)
LOGICAL BLOCK APPLICATION TAG MASK
27 (LSB)
28 (MSB)
NUMBER OF BLOCKS. . .
31 (LSB)