Re: libata: Simulate REPORT LUNS for ATAPI devices when not supported

Jeff Garzik
2006-12-04T23:13:00Z

Darrick J. Wong wrote:
> The Quantum GoVault SATAPI removable disk device returns ATA_ERR in
> response to a REPORT LUNS packet. If this happens to an ATAPI device
> that is attached to a SAS controller (this is the case with sas_ata),
> the device does not load because SCSI won't touch a "SCSI device"
> that won't report its LUNs. If we see this command fail, we should
> simulate a response that indicates the presence of LUN 0.
>
> Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>

I think the answer to this issue lies in the behavior of the majority of
ATAPI devices when responding to REPORT LUNS. Regardless of SAS or SATA
or whatever bus the device is using.

ISTR that REPORT LUNS can make ATAPI devices croak, so it might be wise
and more safe to simply simulate REPORT LUNS by default for all ATAPI
devices. Then readdress the issue if someone has a burning need to
support the rare multi-LUN ATAPI devices. I have one, but I'm not
highly motivated to dig it out.

Jeff