Re: [SCSI] Add support for braindead Cypress USB ATA passthrough CDBs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/23/05 09:52:40 -0600 James Bottomley wrote:

On Wed, 2005-12-21 at 04:24 -0800, David Caldwell wrote:
This patch does 2 things. It reimplements the SG_FLAG_LUN_INHIBIT flag
in the SG_IO ioctl which stops the scsi subsystem from overwriting the
2nd byte of the CDB with the LUN. It also doesn't guess the CDB length
when sending the SG_IO ioctl to the sg device (the main scsi_ioctl
already did this).

I think this approach is too invasive to the stack.  When this was
discussed in november, there wasn't much enthusiasm for resurrecting the
long dead LUN_INHIBIT flag.  The two suggested mechanisms are

Invasive because of the extra flag in the request structure?

2) If 1) doesn't work, then use a blacklist entry which the subsystems
would also have access to.

I think this might not be optimal. The problem is that it's impossible to tell that it's a Cypress part from the USB side of things (or the SCSI side for that matter), so there would have to be an entry for each of the 50,000 vendors of USB bridges.

What about the patch's cdb length additions in sg and scsi_lib.c? It seems like half the code guesses CDB length and the other half passes it around. Clearly, given devices like this, guessing isn't going to work 100% of the time. So either eveyone needs to pass around lengths, or there needs to be another flag somewhere. The code should at least be consistent though.

-David
-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux