Page
20
LTO SCSI Interface Manual
ERASE
The Erase command marks the tape, from the current position to the end of tape, as
erased.
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
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 residual from the SCSI-1 days 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 Control Byte Format on page 18.
If the Immediate (Immed) flag is set to 1, 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) flag is set to 0, 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.