Re: [usb-storage] [Merging ATA passthru] on integrating SMART/ATA-Security in usb-storage driver

Andries Brouwer
2005-11-04T23:56:46Z

On Fri, Nov 04, 2005 at 12:30:04PM -0800, Matthew Dharm wrote:
> On Fri, Nov 04, 2005 at 12:58:27PM -0600, James Bottomley wrote:

> > What happens if you prevent USB mangling the scsi_level? I think, for
> > the most part, we would handle 0 in about the same way as we handle 2.
> > However, we could gate the if around the CDB[1] mangling as
> >
> > if (scsi_level != SCSI_UNKNOWN && scsi_level <= SCSI_2)
> >
> > which should fix your problem, I think.
>
> A long time ago, usb-storage didn't mangle the scsi_level. And almost
> nothing worked. Without a SCSI level, 6-byte commands get sent; only
> 10-byte commands will do.

Yes, that was long ago. Haven't things improved?

(For example, I seem to recall adding stuff like use_10_for_{ms,rw}
to make it possible for usb storage to tell the SCSI layer that it
prefers 10-byte commands. Maybe no cheating with SCSI level is needed
anymore?)

Andries