beautypg.com

Write 0ah, Pre-execution checks, Command descriptor block – HP Q153090901 User Manual

Page 178: Cdb fields, Write ah 178

background image

Commands

178

WRITE 0Ah

Zero or more blocks of data are transferred from the host to tape starting at the current logical

position.

It is recommended that the Buffered Mode field of the

MODE SELECT

Parameter is set to either 1 or

2 so that Immediate reporting is enabled; upon a write command the drive will report

GOOD

status once the data is successfully transferred to the data buffer (but not necessarily to tape).

Data held in the buffer is flushed to tape in the following circumstances:

A SCSI command is received that forces a flush:

Buffered mode is not enabled. If buffered mode has not been set to 1 or 2, the buffer is

flushed before the command completes.

The write delay time is exceeded. This is defined by the Write Delay field of the Device

Configuration Mode Select page. If the drive is idle for longer than this (no operations that

access the tape have been performed), any data in the buffer is flushed to tape.

Pre-execution checks:

Command descriptor block:

CDB fields:

ERASE

LOAD

LOCATE

LOG SELECT

MODE SELECT

READ

REWIND

SEND DIAGNOSTIC

SPACE

VERIFY

WRITE BUFFER

Illegal Field

Fixed Bit

Reservation

Deferred Error

Unit Attention

Media Access

Media Write

Diagnostic Status

7

6

5

4

3

2

1

0

0

Operation Code (0Ah)

1

Reserved (0)

Fixed

2

(MSB)

Transfer Length

3
4

(LSB)

5

Control

Fixed

0 The Transfer Length field specifies the length of the transfer in bytes.
1 The Transfer Length field specifies the length of the transfer in blocks. The size of each

block (in bytes) is determined by the current Block Length given in the Mode Select

Parameter block descriptor.

Transfer

Length

0 No data is transferred. The current logical position will be unchanged.

>0 The amount of data to be transferred, in bytes or blocks as determined by the Fixed field.