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

James Bottomley
2005-11-04T20:53:16Z

On Fri, 2005-11-04 at 12:30 -0800, Matthew Dharm wrote:
> Would the block layer really have to change much if the commands only come
> from SG_IO?

Yes, since the CDB[1] addition is done in scsi_dispatch_cmd() all you
really have access to there is the command (and through it the device
and host). So a blacklist would be not too much work to implement but
actually making the SG_IO flag work would be quite large because it has
to be connected first to the request and then to the command.

James