Re: [PATCH] The first byte in CDB USAGE DATA should be the opcode number and not 0xFF

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

 



On Mon, 24 Feb 2014 19:15:09 -0800
Ronnie Sahlberg <ronniesahlberg@xxxxxxxxx> wrote:

> When we build the CDB USAGE DATA field for a REPORT SUPPORTED OPCODES reply
> we must set the first byte of the field to the opcode itself, and not
> to 0xFF as we currently do.
> 
> SPC4:
> ...
> The CDB USAGE DATA field contains information about the CDB for the command being queried.
> The first byte of the CDB USAGE FIELD field shall contain the operation code for the command being queried.
> ...
> 
> A test for this is available in the libiscsi test utility :
> 
> ./bin/iscsi-test-cu iscsi://127.0.0.1/iqn.ronnie.test/1 --test=SCSI.ReportSupportedOpcodes.OneCommand
> 
> Signed-off-by: Ronnie Sahlberg <ronniesahlberg@xxxxxxxxx>
> ---
>  usr/scsi.c |  195 ++++++++++++++++++++++++++++++++++++------------------------
>  1 files changed, 118 insertions(+), 77 deletions(-)

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux