See SPC 7.8.1 "Vital product data parameters overview and page codes". Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx> --- 007 | 26 ++++++++++++++++++++++++++ 007.out | 12 ++++++++++++ group | 1 + 3 files changed, 39 insertions(+) create mode 100755 007 create mode 100644 007.out diff --git a/007 b/007 new file mode 100755 index 0000000..29982f5 --- /dev/null +++ b/007 @@ -0,0 +1,26 @@ +#!/bin/bash +# +# Test that mandatory VPD pages are supported. +# + +seq=`basename $0` +echo "QA output created by $seq" + +here=`pwd` +tmp=/tmp/$$ +status=1 # failure is the default! + +# get standard environment, filters and checks +. ./common.rc +. ./common.filter + +_require_command sg_inq + +sg_inq -p 0x00 $TEST_DEV | fgrep -we 0x0 -e 0x83 +sg_raw_v $TEST_DEV -r 2 0x12 1 0x83 0 2 0 + + +# success, all done +echo "*** done" +rm -f $seq.full +status=0 diff --git a/007.out b/007.out new file mode 100644 index 0000000..e5e270b --- /dev/null +++ b/007.out @@ -0,0 +1,12 @@ +QA output created by 007 + 0x0 Supported VPD pages + 0x83 Device identification + cdb to send: 12 01 83 00 02 00 +SCSI Status: Good + +Sense Information: +sense buffer empty + +Received 2 bytes of data: + 00 00 83 .. +*** done diff --git a/group b/group index 24c8be0..b1b8f28 100644 --- a/group +++ b/group @@ -13,3 +13,4 @@ 004 auto 005 auto 006 auto +007 auto -- 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