SCSI Commands: 16BERASE
Page
27
3.4
ERASE
The ERASE command marks the tape, from the current position to the end of tape,
as erased.
3.4.1
ERASE Command Descriptor Block
Byte
Bits
7 6 5 4 3 2 1 0
0
Operation Code (19h)
1
Ignored LUN
Reserved
IMMED
Long
2
Reserved
3
Reserved
4
Reserved
5
Control
3.4.1.1
ERASE Command Field Descriptions
Field Bytes
Bits
Description
Operation
Code
0
The Operation Code for Erase is 19h.
Ignored
Logical
Unit
1
5-7
The LUN field is vestigial from the SCSI-1 standard and is ignored.
IMMED
1
1
0 = Status is not returned until the tape is erased.
1 = Status is returned as soon as the operation is initiated.
Long 1 0 0 = Short Erase is performed and EOD is recorded at the current
tape position.
1 = Long data-security Erase is performed, and EOD is recorded
from the current tape position to the end of the tape.
Reserved
All reserved bits must be 0.
Control
See
SCSI Command Control Byte Format on page 25.
If the immediate (IMMED) bit is set to one, then the drive validates the command
and waits for any previous command from any host to complete including any
immediate commands currently being processed and for any buffered data to be
flushed to tape. It will then report a deferred error for any preceding command or
buffered data if appropriate. If there is no deferred error, the drive reports good
status and initiates the command. If the immediate (IMMED) bit is set to zero, status
is not returned until after the command has completed.
If the Long bit is set, EOD is written at the current position. Data Set Separators are
then written from EOD to the end of the medium to overwrite any data currently on
the tape. If the Long bit is clear, then an EOD is written at the current position
marking it as end of data.
Summary of Contents for LTO 4
Page 1: ......