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

James Bottomley
2003-04-22T17:25:22Z

On Tue, 2003-04-22 at 12:22, Andries.Brouwer@cwi.nl wrote:
[...]

Actually, could this

> Apr 9 17:34:55 lemon: usb-storage: Invoking Mode Translation

Be the root cause? It indicates that usb storage modified the command.

In 2.5.68 that's doing a translation from MODE SENSE(6) to MODE
SENSE(10) inside the driver.

But the odd thing in usb/storage/protocol.c is this (about line 354):

case MODE_SENSE:
case MODE_SELECT:
srb->cmd_len = 12;
srb->cmnd[11] = 0;
srb->cmnd[10] = 0;

Why is a 10 byte command given a command length of 12?

James