[PATCH v3 2/3] scsi-testsuite: change test 002 to send an invalid INQUIRY command

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

 



The REQUEST SENSE command in test 002 only fails because
descriptor format is not supported by LIO.  Replace it with
an invalid INQUIRY (standard inquiry with non-zero page code).
---
 002     |    2 +-
 002.out |   19 +------------------
 2 files changed, 2 insertions(+), 19 deletions(-)

diff --git a/002 b/002
index ff2b92c..0c95cb4 100755
--- a/002
+++ b/002
@@ -22,7 +22,7 @@ status=1	# failure is the default!
 
 _require_command sg_raw
 
-execute_cdb -r 255 3 1 0 0 ff 0
+execute_cdb 12 1 1 0 0 0
 
 # success, all done
 echo "*** done"
diff --git a/002.out b/002.out
index 7d5b81d..80ba37a 100644
--- a/002.out
+++ b/002.out
@@ -1,5 +1,5 @@
 QA output created by 002
-    cdb to send: 03 01 00 00 ff 00
+    cdb to send: 12 01 01 00 00 00
 SCSI Status: Check Condition
 
 Sense Information:
@@ -9,21 +9,4 @@ Sense Information:
         70 00 05 00 00 00 00 0a  00 00 00 00 24 00 00 00
         00 00
 
-Received 255 bytes of data:
- 00     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
- 10     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
- 20     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
- 30     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
- 40     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
- 50     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
- 60     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
- 70     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
- 80     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
- 90     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
- a0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
- b0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
- c0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
- d0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
- e0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
- f0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00       ...............
 *** done
-- 
1.7.9.3


--
To unsubscribe from this list: send the line "unsubscribe target-devel" 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]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux