[stgt] [PATCH] The first byte in CDB USAGE DATA should be the opcode number and not 0xFF
FUJITA Tomonori
fujita.tomonori at lab.ntt.co.jp
Wed Feb 26 12:23:18 CET 2014
On Mon, 24 Feb 2014 19:15:09 -0800
Ronnie Sahlberg <ronniesahlberg at gmail.com> 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 at gmail.com>
> ---
> 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 at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt
mailing list