Report LUNS
Julyl 2017 Command Set 213
Report LUNs Data Definition
The library returns the following data for the Report LUNs command.
TABLE 4-112 Report LUNs Data
Byte
Bit
76543210
0 to 3 (MSB) LUN list length (LSB)
4 to 7 Reserved (00h)
8 to 15 (MSB) First LUN Descriptor (LSB)
n-7
to
n
(MSB)
Last LUN Descriptor (n)
(LSB)
Report LUNs Data Definitions:
LUN list length The library returns the length in bytes of the LUN list that is 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.
TABLE 4-113 LUN Descriptor
Byte
Bit
76543210
0 Address Method
Bus ID (0h)
1 Single Level LUN Address
2 to 3 Second Level LUN Address (00h)
4 to 5 Third Level LUN Address (00h)
6 to 7 Fourth Level LUN Address (00h)
LUN Descriptor Data Definitions:
Address Method This is set to 0h indicating single level LUN addressing is used.
Bus ID This is set to 0h indicating a logical unit at the current level.
Single Level LUN Address This is the value of the LUN
Second, Third, and Fourth
Level LUN Address
Set to 00h for single level addressing