From: Bart Van Assche <bart.vanassche@gmail.com>
To: ronnie sahlberg <ronniesahlberg@gmail.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: SCSI testing/USB devices are amazing
Date: Wed, 22 May 2013 16:07:41 +0200 [thread overview]
Message-ID: <519CD12D.3040805@acm.org> (raw)
In-Reply-To: <CAN05THR+P7nzzTe6FCmG+F8_frkL=z-PS1GvoBVn57EyDMo-dw@mail.gmail.com>
On 04/28/13 18:19, ronnie sahlberg wrote:
> Hi List,
>
> Interested in SCSI tests?
>
> I have a reasonable SCSI (mainly SBC) testsuite at
> https://github.com/sahlberg/libiscsi
> while I am mainly interested in testing of iSCSI targets, most of my
> tests so far are for the SCSI protocol
> so they work quite well on devices connected to any kind of transport,
> as long as you re-export them via iSCSI.
> (For example using a simple passthrough device with TGT.)
> At some stage I will redo some of the framework so that it can
> optionally talk directly to a /dev/sg* device, but reexporting via TGT
> works well enough for now.
Hello Ronnie,
Thanks for making this software publicly available. I have a question
about one particular test though. In the output of the test suite I
found the following: <quote>Test READ16 with non-zero RDPROTECT. Device
does not support/use protection information. All commands should
fail.</quote>
However, in SBC-3 I found the following: <quote>If type 0 protection is
enabled and the RDPROTECT field, the WRPROTECT field, the VRPROTECT
field, or the ORPROTECT field is set to a non-zero value, then medium
access commands are invalid and may be terminated by the device server
with CHECK CONDITION status with the sense key set to ILLEGAL REQUEST
and the additional sense code set to INVALID FIELD IN CDB.</quote>
Apparently your test suite considers not failing READ16 with non-zero
RDPROTECT field as an error. However, if I interpret the above paragraph
from SBC-3 correctly that behavior seems compliant to me ?
Bart.
next prev parent reply other threads:[~2013-05-22 14:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-28 16:19 SCSI testing/USB devices are amazing ronnie sahlberg
2013-05-10 2:43 ` Martin K. Petersen
2013-05-14 2:36 ` ronnie sahlberg
2013-05-14 22:43 ` Martin K. Petersen
2013-05-17 23:53 ` ronnie sahlberg
2013-05-19 17:39 ` Douglas Gilbert
2013-05-22 14:07 ` Bart Van Assche [this message]
2013-05-22 17:05 ` ronnie sahlberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=519CD12D.3040805@acm.org \
--to=bart.vanassche@gmail.com \
--cc=linux-scsi@vger.kernel.org \
--cc=ronniesahlberg@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox