Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2 0/2] nvme-cli: add options to set/get property of NVMf
@ 2017-12-13  2:11 Guan Junxiong
  2017-12-13  2:11 ` [PATCH V2 1/2] nvme-cli: add support to get properties for NVMe over Fabric Guan Junxiong
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Guan Junxiong @ 2017-12-13  2:11 UTC (permalink / raw)


Hi all,

To make it easy to use, this two patches add the support to set/get the
properties for NVMe over Fabric. 

Patch 1/2  makes use of show-regs option which only supports PCIe previously
to support NVMf.
Patch 2/2  adds new option named set-property to support setting the property 
of NVMf. IMO, it is the responsibility of kernel to try to avoid malicious
operation such as setting NRSS from the user space. So I ignore this in
the nvme-cli.

Welcome any comments.

Thanks

Changes since V1:
* return nagative -EINVAL and set errno to distinguish positive NVMe error status code (Minwoo)
* remove uncecessary initialization for local variable _is64bit_ (Minwoo)
* rebase on latest master

Guan Junxiong (2):
  nvme-cli: add support to get properties for NVMe over Fabric
  nvme-cli: support to set the property for NVMe over Fabric

 Documentation/nvme-set-property.1    |  51 +++
 Documentation/nvme-set-property.html | 814 +++++++++++++++++++++++++++++++++++
 Documentation/nvme-set-property.txt  |  34 ++
 Documentation/nvme-show-regs.1       |  13 +-
 Documentation/nvme-show-regs.txt     |  23 +-
 nvme-builtin.h                       |   3 +-
 nvme-ioctl.c                         |  94 ++++
 nvme-ioctl.h                         |   2 +
 nvme-print.c                         | 134 +++---
 nvme-print.h                         |   3 +-
 nvme.c                               |  77 +++-
 11 files changed, 1173 insertions(+), 75 deletions(-)
 create mode 100644 Documentation/nvme-set-property.1
 create mode 100644 Documentation/nvme-set-property.html
 create mode 100644 Documentation/nvme-set-property.txt

-- 
2.11.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-12-13 15:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-13  2:11 [PATCH V2 0/2] nvme-cli: add options to set/get property of NVMf Guan Junxiong
2017-12-13  2:11 ` [PATCH V2 1/2] nvme-cli: add support to get properties for NVMe over Fabric Guan Junxiong
2017-12-13  2:11 ` [PATCH V2 2/2] nvme-cli: support to set the property " Guan Junxiong
2017-12-13 15:34 ` [PATCH V2 0/2] nvme-cli: add options to set/get property of NVMf Keith Busch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox