98
Chapter 8 SCSI Commands
The ELEMENT TYPE CODE indicates the type of the specified Auxiliary
Memory address. The Element Type Code values are as follows.
1 Medium Transport Element (autoloader picker, etc.): no hold function
2 Storage Element (autoloader slot, etc.)
3 Import/Export Element (autoloader I/O port, etc.): not supported
4 Data Transfer Element (tape drive, etc.)
Note that 4 (Data Transfer Element) returns the value of the slot immediately
prior to inserting a cartridge in the drive. Therefore, it may not be the current
value. To find out the current value, issue a READ ATTRIBUTE command to
the drive.
The contents of the Service Action area defined by the READ ATTRIBUTE
command is as shown in the following table.
Table 8.10.2 : READ ATTRIBUTE service action codes
The ALLOCATION LENGTH area of the CDB indicates the space allocated
for the returned parameter list.
The VOLUME NUMBER specifies the Volume within Memory Auxiliary
Memory. The number of MAM Volumes is the same as that of inserted
multivolume media. In the case of a Single Volume, this area must be 0. The
autoloader does not handle Multi-volume information, therefore this must be 0.
The PARTITION NUMBER specifies the Partition within the Volume. The
number of MAM Partitions is the same as that of inserted multi-partition media.
When the media only has one partition, this area must be 0. The autoloader does
not handle Multi-partition information, therefore this must be 0.
If the VOLUME NUMBER and PARTITION NUMBER combination is
invalid, the command terminates with a CHECK CONDITION status. The
Sense Key is ILLEGAL REQUEST and ASC/ASCQ is INVALID FIELD IN
CDB.
The FIRST ATTRIBUTE ID specifies the first ATTRIBUTE to be returned. If
a non-existent ATTRIBUTE is set, the command terminates with a CHECK
CONDITION status. The Sense Key is ILLEGAL REQUEST and ASC/ASCQ
is INVALID FIELD IN CDB.
If the return capacity is insufficient, only the first part of the list is returned.
However, the autoloader does not treat this state as an error. To obtain the rest
of the list, set the ALLOCATION LENGTH area to a value large enough to hold
the entire parameter list and issue the READ ATTRIBUTE command again, or
set the FIRST ATTRIBUTE ID area to limit itself only to Attributes that can be
returned.
Code
Name
Description
00h
ATTRIBUTE VALUES
Return attribute values.
01h
ATTRIBUTE LIST
Returns a list of attribute identifiers available
(not non-existent)
02h
VOLUME LIST
Return a list of Volume Numbers available
03h
PARTITION LIST
Return a list of Partition Numbers available
04h
ELEMENT LIST
Return a list of element containing MAM
05h-1Fh
Reserved