Hi Patrick,
You're right, I was thinking of the HiSup bit. But as you point out
it only indicates a device supports Hierarchical Addressing and that
it must support REPORT LUNS. I incorrectly inferred that a device with
a HiSup bit of zero will not support REPORT LUNS.
I don't see a better way to detect LUNs other then to first try REPORT LUNS.
If a CHECK CONDITION is returned from REPORT LUNS, then start LUN scanning
with an INQUIRY.
--
Bob Frey
[EMAIL PROTECTED]
On Thu, Mar 15, 2001 at 12:07:46PM -0800, Patrick Mansfield wrote:
> Bob -
>
> What bit are you referring to?
>
> The spec seems to say that if the HISUP bit in the inquiry page is not set,
> the device can still support the REPORT LUNS.
>
> The SCSI Primary Ccommands - 2 (SPC-2)
> ( ftp://ftp.t10.org/t10/drafts/spc2/spc2r19.pdf ) page 103 in describing
> INQUIRY fields says:
>
> A hierarchical support (HISUP) bit of zero indicates the target does not use
> the hierarchical addressing model to assign LUNs to logical units. A HISUP bit
> of one indicates the target uses the hierarchical addressing model to assign
> LUNs to logical units. WHen the HISUP bit is one, the device server shall
> support the REPORT LUNS comman (see 7.19). When the HISUP bit is zero, the
> device server may support the REPORT LUNS command.
>
> So, it seems a REPORT LUNS could still be supported by a "sparse LUN" device
> that has HISUP set to zero.
>
> -- Patrick Mansfield
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]