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

Christoph Hellwig
2005-11-07T17:53:14Z

On Mon, Nov 07, 2005 at 09:24:21AM -0800, Patrick Mansfield wrote:
> The scmd/cdb is not available until we call scsi_get_command() in the
> request function. So you would have to add a field into scsi_request, set
> it in sg (in both sg.c block/scsi_ioctl.c, test via sd and sg when you are
> done), and add the field in scsi_cmnd, and set scmd one in
> scsi_init_cmd_from_req().

Once Mike finally reposts his patchkit scsi_request should be gone
and block SG_IO or sg should send down a struct request. Which already
has a cmnd pointer embedded.