Re: [usb-storage] Re: PATCH: exclude certain commands from emulated SCSI hosts

Matthew Dharm
2003-03-23T18:13:14Z

[-- Attachment #1: Type: text/plain, Size: 841 bytes --]

On Sat, Mar 22, 2003 at 11:39:05PM -0800, Linus Torvalds wrote:
> How about making the SCSI stuff pass a "common" flag (or "required") down
> with the command? Then, a emulated thing could just decide to punt all
> commands with an immediate failure if they aren't marked "required".
>
> That still _allows_ the driver to implement it if it wants to, unlike your
> previous approach.

That seems reasonable... but we need to define a standard way to
reject/fail non-common commands. Special sense data? Special result
code? It doesn't really matter to me, but we need to pick something.

Do you have a preference?

Matt

--
Matthew Dharm Home: mdharm-usb@one-eyed-alien.net
Maintainer, Linux USB Mass Storage Driver

It was a new hope.
-- Dust Puppy
User Friendly, 12/25/1998

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]