On Thu, Feb 15, 2001 at 04:40:35PM -0500, Eric Youngdale wrote:
>     My preference is that 16-byte commands not even reach low-level drivers
> that are not prepared to deal with them.  It would be a little more work to
> get it set up, but on the whole it would be safer, esp if we are considering
> this for 2.4.
> 
>     A cleaner solution would probably be to patch each and every driver to
> reject SCSI-III commands, and then remove the patch for drivers that are
> known to accept 16-byte commands.  Yech - the low-level driver count is now
> hovering around 80.
> 
>     Also keep in mind that we as of yet have no record in the Scsi_Host
> structure to say whether a host is SCSI-III or not.

Hrm... how about something like this:

We add a field to the Scsi_Host structure which would indicate if they are
SCSI-III able.  By default, this field will be initialized to 0, indicating
only 12-byte command readyness.  The mid-level will reject cmd_len > 12
unless this byte is != 0.

Short, sweet, and to the point.  The question is, can we get it in more
sooner than later?  I'd really like to get all this integrated for a later
2.4.x kernel.

Matt

-- 
Matthew Dharm                              Home: [EMAIL PROTECTED] 
Maintainer, Linux USB Mass Storage Driver

What, are you one of those Microsoft-bashing Linux freaks?
                                        -- Customer to Greg
User Friendly, 2/10/1999

PGP signature

Reply via email to