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. - : 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