beautypg.com

Read specific status, Residue information – HP Q153090901 User Manual

Page 108

background image

Commands

108

Read specific status:

NOTE:

Early warning end of medium information is not reported on reads.

Residue information:

The Valid bit will be set. The information bytes will be as follows:

Event

Status

Key

Notes

SILI error

CHECK

COND’N

NO

SENSE

ILI and Valid bits are set. The information bytes will be set

as follows:

Variable Block Mode: The difference between the

requested Transfer Length and the actual block size. If the

block size is bigger than the Transfer Length, this will be

negative (twos complement).

Fixed Block Mode: The difference between the requested

number of records and the number of whole good records

transferred. If the last record was under length, it is

considered “whole good” for the purposes of this

calculation.

Filemark

encountered during

a read

CHECK

COND’N

NO

SENSE

The Mark bit is set. Logical position will be on the EOM

side of the filemark. Additional sense is 0001h (filemark

detected). The logical position will be on the EOM side of

the filemark. Residue information is as described below.

EOD encountered

during a read

CHECK

COND’N

BLANK

CHECK

Additional sense is set to 0005h (EOD detected). Residue

information is as described below.

EOP/M

encountered during

a read

CHECK

COND’N

MEDIUM

ERROR

The EOM bit is set. Additional sense is set to 0002h (EOP/

M detected). Residue information is as described below.

Failure to read data

through media error

or non-fatal drive

error

CHECK

COND’N

MEDIUM

ERROR

Additional sense is set to 1100h (unrecovered read error)

or 3B00h (sequential positioning error). Residue

information is as described below.

Corrupt data format CHECK

COND’N

MEDIUM

ERROR

Additional sense set to 3002h (can’t read media).

Blank media

encountered during

a read

CHECK

COND’N

BLANK

CHECK

Caused by an attempt to read an unformatted tape.

Additional sense is set to 5000h (EOD not found). Residue

information is as shown below.

Variable Block Mode The requested transfer length (in bytes).
Fixed Block Mode

The difference (in blocks) between the requested transfer size and the actual

number of blocks transferred. A partially transferred block is not counted, so for

example, if 3.5 out of 10 blocks have been transferred the residue will be 7.
If the last block is an illegal length block, it is not counted among those transferred.

For example, if 4 legal length blocks and 1 illegal length block have been

transferred out of a total of 10, the residue will be 6.