Load/unload 1bh, Pre-execution checks, Command descriptor block: cdb fields – HP C737990900 User Manual
Page 55

Commands 55
Co
m
m
an
ds
LOAD/UNLOAD
1Bh
The
LOAD
/
UNLOAD
command allows the host to specify that a tape cartridge
present in the drive is either made ready for data transfer (“loaded”) or
disabled for data transfer (if Prevent Media Removal is set). It can also cause
the cartridge to be ejected from the drive (“unloaded”).
Pre-Execution Checks:
If an unload is to be performed, the drive checks if the tape is currently being
loaded. If it is,
CHECK CONDITION
is reported with a sense key of
NOT READY
and additional sense of 0401h (becoming ready).
If a load is to be performed, the drive checks to ensure that a tape cartridge is
present. If not, it reports
CHECK CONDITION
with a sense key of
NOT READY
and additional sense of 3A00h (medium not present). If the media is currently
being unloaded or ejected, it reports
CHECK CONDITION
with sense key of
NOT READY
and additional sense of 0400h (cause not reportable).
Command Descriptor Block:
CDB Fields:
Illegal Field
Reservation
Deferred Error
Unit Attention
Diagnostic Status
Media Information
7
6
5
4
3
2
1
0
0
Operation Code (1Bh)
1
Reserved (0)
Immed
2
Reserved (0)
3
Reserved (0)
4
Reserved (0)
Hold
EOT (0)
ReTen
Load
5
Control
Immed
0 The drive reports status after the command has completed.
1 The drive reports status when it starts the command (after any pre-execution checks
and prerequisite unloads have completed).