Re: [PATCH v2] libata: Simulate REPORT LUNS for ATAPI devices

Jeff Garzik
2006-12-11T16:59:28Z

James Bottomley wrote:
> On Mon, 2006-12-11 at 11:24 -0500, Jeff Garzik wrote:
>> 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. Since most ATAPI devices don't support
>>> multiple LUNs anyway, we might as well fake a response like we do for
>>> ATA devices.
>>>
>>> Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
>> I'm leaning towards applying this, perhaps with a module option that
>> allows experimenters to revert back to the older behavior.
>>
>> Any chance you could be talked into tackling some of the SAT
>> translation-related items Doug G mentioned? I'm almost certain there
>> are some info pages we should be returning, but are not, at the very least.
>
> I thought we were closing in on agreeing that the SPC/MMC
> inconsistencies made this the correct candidate fix.

that works for me...

Jeff