aboutsummaryrefslogtreecommitdiff
path: root/lib/sg_pt_common.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2020-04-11 04:07:35 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2020-04-11 04:07:35 +0000
commit0a9f85769a18562cb3cb5a59ec202e044b18389c (patch)
tree20138cf50c5ea4b3caf2c1ca176938d91fec9914 /lib/sg_pt_common.c
parent7f78fcb9b12c87fdc6eca644bc1582d8e5e1242c (diff)
downloadsg3_utils-0a9f85769a18562cb3cb5a59ec202e044b18389c.tar.gz
sg_lib: Linux NVMe SNTL: add read, write and verify
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@847 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'lib/sg_pt_common.c')
-rw-r--r--lib/sg_pt_common.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/sg_pt_common.c b/lib/sg_pt_common.c
index 5d087171..b0db4f85 100644
--- a/lib/sg_pt_common.c
+++ b/lib/sg_pt_common.c
@@ -31,7 +31,7 @@
#include "sg_pt_nvme.h"
#endif
-static const char * scsi_pt_version_str = "3.13 20200313";
+static const char * scsi_pt_version_str = "3.14 20200410";
const char *
@@ -84,6 +84,9 @@ static struct sg_opcode_info_t sg_opcode_info_arr[] =
{0x2a, 0, 0, {10, /* WRITE(10) */
0xfb, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xff, 0xff, 0xc7, 0, 0, 0, 0,
0, 0} },
+ {0x2f, 0, 0, {10, /* VERIFY(10) */
+ 0xf6, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xff, 0xff, 0xc7, 0, 0, 0, 0,
+ 0, 0} },
{0x55, 0, 0, {10, /* MODE SELECT(10) */
0x13, 0x0, 0x0, 0x0, 0x0, 0x0, 0xff, 0xff, 0xc7, 0, 0, 0, 0, 0, 0} },
{0x5a, 0, 0, {10, /* MODE SENSE(10) */
@@ -94,6 +97,9 @@ static struct sg_opcode_info_t sg_opcode_info_arr[] =
{0x8a, 0, 0, {16, /* WRITE(16) */
0xfb, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xc7} },
+ {0x8f, 0, 0, {16, /* VERIFY(16) */
+ 0xf6, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+ 0xff, 0xff, 0x3f, 0xc7} },
{0x9e, 0x10, F_SA_LOW, {16, /* READ CAPACITY(16) [service action in] */
0x10, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0x1, 0xc7} },