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

FUJITA Tomonori <[email protected]>
Newsgroups org.kernel.vger.stgt
Message-ID <20140226.202318.1568838937885768236.fujita.tomonori@lab.ntt.co.jp>
On Mon, 24 Feb 2014 19:15:09 -0800
Ronnie Sahlberg <[email protected]> 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 <[email protected]>
> ---
>  usr/scsi.c |  195 ++++++++++++++++++++++++++++++++++++------------------------
>  1 files changed, 118 insertions(+), 77 deletions(-)

Applied, thanks.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.