User Manual

SCSI Commands Reference Manual, Rev. J 179
www.seagate.com Direct Access Block commands (SPC-5 and SBC-4)
3.33 REPORT LUNS command
The REPORT LUNS command (see table 147) requests that the peripheral device logical unit inventory accessible to the I_T nexus be sent to the
application client. The logical unit inventory is a list that shall include the logical unit numbers of all logical units having a PERIPHERAL
QUALIFIER value of 000b (see table 60). Logical unit numbers for logical units with PERIPHERAL QUALIFIER values other than 000b and 011b
may be included in the logical unit inventory. Logical unit numbers for logical units with a PERIPHERAL QUALIFIER value of 011b shall not be
included in the logical unit inventory.
SELECT REPORT field
The SELECT REPORT field (see table 148) specifies the types of logical unit addresses that shall be reported.
ALLOCATION LENGTH field
The ALLOCATION LENGTH field is defined in 2.2.6. The allocation length should be at least 16.
The REPORT LUNS command shall return CHECK CONDITION status only when the device server is unable to return the
requested report of the logical unit inventory.
If a REPORT LUNS command is received from an I_T nexus with a pending unit attention condition (i.e., before the device server
reports CHECK CONDITION status), the device server shall perform the REPORT LUNS command (see SAM-5).
Table 147 REPORT LUNS command
Bit
Byte
7 6 5 4 3 2 1 0
0 OPERATION CODE (A0h)
1 Reserved
2 SELECT REPORT
3
Reserved. . .
5
6 (MSB)
ALLOCATION LENGTH. . .
9 (LSB)
10 Reserved
11 CONTROL
Table 148 SELECT REPORT field
Code Description
00h
The list shall contain the logical units accessible to the I_T nexus with the following addressing methods (see
SAM-5):
a) Logical unit addressing method,
b) Peripheral device addressing method; and
c) Flat space addressing method.
If there are no logical units, the LUN LIST LENGTH field shall be zero.
01h
The list shall contain only well known logical units, if any. If there are no well known logical units, the LUN LIST
LENGTH field shall be zero.
02h
The list shall contain all logical units accessible to the I_T nexus.
03h - FFh
Reserved