From a632d3111055086cd4e5cd047f1d2c6935a4acf3 Mon Sep 17 00:00:00 2001
From: Gollu Appalanaidu
Date: Thu, 8 Jul 2021 21:55:22 +0530
Subject: [PATCH] nvme: add CDW2 and CDW3 support for Write Zeroes and Verify
Command
Added support for the Variable Sized Expected Logical Block Storage Tag(ELBST)
and Expected Logical Block Reference Tag (ELBRT), CDW2 and CDW3 (00:47) bits
for NVM commands Write Zeroes and Verify commands.
Signed-off-by: Gollu Appalanaidu
[dwagner: removed nvme-ioctl.c changes, these are part of libnvme]
Signed-off-by: Daniel Wagner
---
Documentation/nvme-verify.1 | 10 ++++++--
Documentation/nvme-verify.html | 17 +++++++++++--
Documentation/nvme-verify.txt | 6 +++++
Documentation/nvme-write-zeroes.1 | 28 ++++++++++------------
Documentation/nvme-write-zeroes.html | 36 ++++++++++++++++++++--------
Documentation/nvme-write-zeroes.txt | 7 +++++-
nvme.c | 14 +++++++++--
7 files changed, 85 insertions(+), 33 deletions(-)
diff --git a/Documentation/nvme-verify.1 b/Documentation/nvme-verify.1
index 94126213..c6ddd89d 100644
--- a/Documentation/nvme-verify.1
+++ b/Documentation/nvme-verify.1
@@ -2,12 +2,12 @@
.\" Title: nvme-verify
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
.\" Generator: DocBook XSL Stylesheets v1.79.1
-.\" Date: 07/07/2021
+.\" Date: 07/08/2021
.\" Manual: NVMe Manual
.\" Source: NVMe
.\" Language: English
.\"
-.TH "NVME\-VERIFY" "1" "07/07/2021" "NVMe" "NVMe Manual"
+.TH "NVME\-VERIFY" "1" "07/08/2021" "NVMe" "NVMe Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
@@ -41,6 +41,7 @@ nvme-verify \- Send an NVMe Verify command, return results
[\-\-ref\-tag= | \-r ]
[\-\-app\-tag\-mask= | \-m ]
[\-\-app\-tag= | \-a ]
+ [\-\-storage\-tag | \-S ]
.fi
.SH "DESCRIPTION"
.sp
@@ -131,6 +132,11 @@ Optional application tag mask when used with protection information\&.
.RS 4
Optional application tag when used with protection information\&.
.RE
+.PP
+\-\-storage\-tag=, \-S
+.RS 4
+Variable Sized Expected Logical Block Storage Tag(ELBST) and Expected Logical Block Reference Tag (ELBRT), CDW2 and CDW3 (00:47) bits\&.
+.RE
.SH "EXAMPLES"
.sp
No examples yet\&.
diff --git a/Documentation/nvme-verify.html b/Documentation/nvme-verify.html
index 53feb4ba..787541df 100644
--- a/Documentation/nvme-verify.html
+++ b/Documentation/nvme-verify.html
@@ -757,7 +757,8 @@ nvme-verify(1) Manual Page
[--prinfo=<prinfo> | -p <prinfo>]
[--ref-tag=<reftag> | -r <reftag>]
[--app-tag-mask=<appmask> | -m <appmask>]
- [--app-tag=<apptag> | -a <apptag>]
+ [--app-tag=<apptag> | -a <apptag>]
+ [--storage-tag<storage-tag> | -S <storage-tag>]
@@ -909,6 +910,18 @@ metadata is passes.
Optional application tag when used with protection information.
+
+--storage-tag=<storage-tag>
+
+
+-S <storage-tag>
+
+
+
+ Variable Sized Expected Logical Block Storage Tag(ELBST) and Expected Logical
+ Block Reference Tag (ELBRT), CDW2 and CDW3 (00:47) bits.
+
+
@@ -929,7 +942,7 @@ metadata is passes.