Report LUNs (A0h)
Report LUNS (A0h) returns the known LUNs to which the initiator can send commands.
- Select Report
-
00h = The library returns LUN addresses limited to the LUN addressing method, peripheral device addressing method, and the flat space addressing method.
02h = The library returns all LUNs accessible to the initiator.
Note:
IBM Bridged Drive: A Select Report option of 2 is not supported by an IBM Bridged Tape Drive. The SCSI Report LUNs command with a Select Report option of 2 will end in Check Condition Status, when the Bridged Tape Drive is an IBM tape drive. The additional sense data will indicate there is an invalid field in the command descriptor block (CDB).
- Allocation Length
-
The number of bytes allocated for data to be returned from the Report LUNs command.
The Allocation must be at least 16 bytes. If it is less, the library returns a check condition with the sense key set to "illegal request" and the additional sense data set to "invalid field" in the command descriptor block (CDB).
Note:
HP Bridged Drive: The Allocation must be at least 16 bytes. If it is less, a check condition is returned with the sense key set to illegal request and the additional sense data set to invalid field in the command descriptor block (CDB).
Report LUNs Data
- LUN List Length
-
The library returns the length in bytes of the LUN list available for transfer. It is equal to 8 times the number of available logical units for the initiator.
For example: If the allocation length is 16 bytes and 2 logical units are available, this command will return the 8-byte header and 1 logical unit descriptor; however, the LUN list length will still be 16 because 16 bytes were available if the allocation length was sufficient.
- Address Method
-
00b = The library is using single level LUN addressing
- Bus ID
-
0h = There is a logical unit at the current level
- Single Level LUN Address
-
The value of the LUN.
- Second, Third, and Fourth Level LUN Address
-
00h = The library only uses single level addressing.