
JULY 2007 MAGNUM 224, MAGNUM 448, STORAGELIBRARY T24, OR STORAGELOADER 2U
8-5
WHAT THE LIBRARY RETURNS
Allocation Length – Bytes 07 and 08
The Allocation Length field allows you to determine the maximum amount of
data to be transferred from the library to the initiator. If you specify an
allocation length that is greater than the bytes available, the library terminates
the Data In phase when all bytes have been transferred. You can specify
0FFFEh to include all available data.
8.3 WHAT THE LIBRARY RETURNS
This section describes the log page structure and the log pages that the library
supports. The LOG SENSE command returns a single log page specified in the
Page Code field of the CDB. Each log page begins with a four-byte page
header (bytes 00 through 03), followed by zero or more variable-length log
parameters defined for that page.
Page Code – Byte 00, Bits 0 through 5
The Page Code field identifies which log page is being transferred. This field
contains one of the codes described in Ta b l e 8 - 1 .
Page Length – Bytes 02 and 03
The Page Length field specifies the length, in bytes, of the following Log
Parameters. The value returned for this field depends on the value you
specified for the Page Code and the Parameter Pointer in the CDB. This value
is independent of what you specified for the Allocation Length.
Log Parameters – Bytes 04 through n
Log parameters are data structures that are contained in log pages and can be
one of the following:
Data counters that record a count of a particular event
A numeric value indicating the state of the library hardware
A string that contains the library event history
The general format of a log parameter is shown on the following section.
Bit
Byte
7 6 5 4 3 2 1 0
00 Reserved Page Code
01 Reserved
02 (MSB)
Page Length
(LSB)
03
04
Log Parameter (First)
...
Log Parameter (Last)
...
n
Komentarze do niniejszej Instrukcji