beautypg.com

Load/unload 1bh, Pre-execution checks, Command descriptor block – HP Q153090901 User Manual

Page 50: Cdb fields, Load/unload bh 50, Command descriptor block: cdb fields

background image

Commands

50

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).

Hold

0 A normal load/unload will be performed.
1 A load will cause the cartridge to be pulled in and seated in the drive, but the tape will not

be threaded.
An unload will cause the tape to be unthreaded, but the cartridge will not be ejected.
In Hold position, the Cartridge Memory is accessible.

ReTen

This field is ignored.

Load

0 The drive performs an unload operation.
1 The drive performs a load operation.