From 1e86e0c634da422bf3ca04e4bb15f09da7e70899 Mon Sep 17 00:00:00 2001 From: Gollu Appalanaidu Date: Sun, 16 May 2021 00:29:37 +0530 Subject: [PATCH] nvme: add uuid index in get and set features command Signed-off-by: Gollu Appalanaidu --- Documentation/nvme-get-feature.1 | 26 +++++++++++++++++++---- Documentation/nvme-get-feature.html | 33 ++++++++++++++++++++++++----- Documentation/nvme-get-feature.txt | 9 ++++++++ Documentation/nvme-set-feature.1 | 16 ++++++++++---- Documentation/nvme-set-feature.html | 27 ++++++++++++++++++----- Documentation/nvme-set-feature.txt | 7 ++++++ completions/_nvme | 4 ++++ completions/bash-nvme-completion.sh | 4 ++-- nvme-ioctl.c | 13 +++++++----- nvme-ioctl.h | 6 +++--- nvme.c | 26 +++++++++++++++++++++-- plugins/intel/intel-nvme.c | 8 +++---- plugins/memblaze/memblaze-nvme.c | 12 +++++------ plugins/micron/micron-nvme.c | 18 ++++++++-------- plugins/seagate/seagate-nvme.c | 2 +- plugins/shannon/shannon-nvme.c | 4 ++-- plugins/toshiba/toshiba-nvme.c | 2 +- plugins/wdc/wdc-nvme.c | 16 +++++++------- 18 files changed, 172 insertions(+), 61 deletions(-) diff --git a/Documentation/nvme-get-feature.1 b/Documentation/nvme-get-feature.1 index 399d1d2c..d7cc7265 100644 --- a/Documentation/nvme-get-feature.1 +++ b/Documentation/nvme-get-feature.1 @@ -1,13 +1,13 @@ '\" t .\" Title: nvme-get-feature -.\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author] -.\" Generator: DocBook XSL Stylesheets vsnapshot -.\" Date: 10/20/2020 +.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] +.\" Generator: DocBook XSL Stylesheets v1.79.1 +.\" Date: 05/16/2021 .\" Manual: NVMe Manual .\" Source: NVMe .\" Language: English .\" -.TH "NVME\-GET\-FEATURE" "1" "10/20/2020" "NVMe" "NVMe Manual" +.TH "NVME\-GET\-FEATURE" "1" "05/16/2021" "NVMe" "NVMe Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -34,6 +34,7 @@ nvme-get-feature \- Gets an NVMe feature, returns applicable results .nf \fInvme get\-feature\fR [\-\-namespace\-id= | \-n ] [\-\-feature\-id= | \-f ] [\-\-cdw11=] + [\-\-uuid\-index= | \-U ] [\-\-data\-len= | \-l ] [\-\-sel=] [\-\-raw\-binary | \-b] @@ -103,6 +104,11 @@ T} .sp 1 .RE .PP +\-U , \-\-uuid\-index= +.RS 4 +UUID Index of the feature +.RE +.PP \-l , \-\-data\-len= .RS 4 The data length for the buffer returned for this feature\&. Most known features do not use this value\&. The exception is LBA Range Type @@ -185,8 +191,20 @@ Retrieves the feature for the some vendor specific feature and specifically requ .if n \{\ .RE .\} +.sp +Get feature with UUID index .RE .sp +.if n \{\ +.RS 4 +.\} +.nf +# nvme get\-feature /dev/nvme0 \-f 0xc0 \-l 512 \-U 0x1 +.fi +.if n \{\ +.RE +.\} +.sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c diff --git a/Documentation/nvme-get-feature.html b/Documentation/nvme-get-feature.html index 19c2444f..62f54bd1 100644 --- a/Documentation/nvme-get-feature.html +++ b/Documentation/nvme-get-feature.html @@ -1,9 +1,10 @@ + - + nvme-get-feature(1)