]> www.infradead.org Git - users/hch/nvme-cli.git/log
users/hch/nvme-cli.git
6 years agoRelease version 1.8 v1.8
Keith Busch [Mon, 8 Apr 2019 20:51:59 +0000 (14:51 -0600)]
Release version 1.8

There are some important fixes pending a release tag, so now seems as
good as any to tag the release.

Thank you again to everyone who's contribute to this round. Shortlog
below.

Breno Leitao (2):
      Fix compilation with GCC-8
      Fix CFLAGS parameter

Chaitanya Kulkarni (3):
      nvme-cli: fix compilation with uint64_t cast
      nvme-cli: minor cleanup for submit_io()
      nvme-cli: align all the macros

Dong Ho (11):
      wdc: Change device capability checking
      wdc: Add additional device for vs-internal-log
      wdc: Add device unit info log extraction
      wdc: Add get drive status command
      wdc: Add clear assert dump status command
      wdc: Add drive resize command
      wdc: Update device capabilities for clear pcie corr
      wdc: Update file parameter checking
      wdc: Add command to extract NAND statistics
      wdc: Add data area extraction for DUI command
      wdc: Additional device capabilities check

James Smart (1):
      nvme-cli: fix fc trtype string

Jeffrey Lien (3):
      NVMe-CLI WDC Plugin - add support for additional SN840 device ID.
      WDC plugin Change vs-internal-log Command to Save Partial E6 Log Data.
      WDC Plugins vs-internal-log command unsupported on SN340.

Keith Busch (8):
      generate new documentation
      Regen docs
      Fix print format specifiers
      Regen documentation
      Add new docs to repository
      Generate new documentation
      Fix format block size usage
      Regen documentation

Kenneth Heitke (4):
      Add reporting of Virtual Management support to id-ctrl
      Fix possible NULL pointer dereferences
      Fix possible memory leak on get-internal-log
      Print timestamp as a date and time string

Martin George (2):
      nvme-cli: add netapp ontapdevices command
      nvme-cli: add netapp ontapdevices man page

Mateusz Piotrowski (3):
      Fix markdown indentation issues
      Sort operating systems alphabetically
      Add FreeBSD installation instructions

Maxim (1):
      Adding a helper to format command to enable the user to specify desired block size and have nvme-cli determine the correct LBAF and add format helper to nvme-create-ns command

Minwoo Im (15):
      fabrics: Return negative errno when asprintf() fails
      fabrics: Return negative errno to check remove_ctrl() is failed
      doc: Update nvme-discover by describing options
      doc: Update nvme-connect by describing options
      doc: Update nvme-connect-all by describing options
      doc: Update nvme-disconnect by describing options
      doc: Add missing commands to main document entry
      nvme: Support raw_binary and json format for show-regs
      doc: Update show-regs document with output-format
      ioctl: Free memory if get_property for fabrics failed
      nvme: Use ARRAY_SIZE() macro in common.h
      nvme: Unify min(), max() macro as a common one
      nvme: Simplify description for virt-mgmt
      nvme: Simplify virt-mgmt options to lowercase
      tests: Update print to print() for python3

Roy Shterman (1):
      nvme-print: Fix evaluation of ctratt on pretty print

Sagi Grimberg (1):
      nvme: print I/O error to stderr

Signed-off-by: Keith Busch <keith.busch@intel.com>
6 years agoRegen documentation
Keith Busch [Mon, 8 Apr 2019 20:49:43 +0000 (14:49 -0600)]
Regen documentation

6 years agoMerge pull request #475 from minwooim/for-1.8/update_test_python_version_to_3
Keith Busch [Mon, 8 Apr 2019 15:57:13 +0000 (09:57 -0600)]
Merge pull request #475 from minwooim/for-1.8/update_test_python_version_to_3

tests: Update print to print() for python3

6 years agoMerge pull request #471 from minwooim/for-1.8/fix-mem-leak-from-show-regs
Keith Busch [Mon, 8 Apr 2019 15:56:17 +0000 (09:56 -0600)]
Merge pull request #471 from minwooim/for-1.8/fix-mem-leak-from-show-regs

ioctl: Free memory if get_property for fabrics failed

6 years agoMerge pull request #474 from minwooim/for-1.8/virt-mgmt-clean-up
Keith Busch [Mon, 8 Apr 2019 15:55:42 +0000 (09:55 -0600)]
Merge pull request #474 from minwooim/for-1.8/virt-mgmt-clean-up

[RFC] Simplify virt-mgmt subcommand options to lowercase

6 years agoMerge pull request #470 from minwooim/for-1.8/support_output_format_for_show_regs
Keith Busch [Mon, 8 Apr 2019 15:51:01 +0000 (09:51 -0600)]
Merge pull request #470 from minwooim/for-1.8/support_output_format_for_show_regs

nvme: Support raw_binary and json format for show-regs

6 years agoMerge pull request #472 from minwooim/for-1.8/remove_duplicated_array_len
Keith Busch [Mon, 8 Apr 2019 15:50:16 +0000 (09:50 -0600)]
Merge pull request #472 from minwooim/for-1.8/remove_duplicated_array_len

nvme: Clean-up duplicated macros

6 years agonvme-cli: add netapp ontapdevices man page
Martin George [Mon, 1 Apr 2019 16:39:57 +0000 (09:39 -0700)]
nvme-cli: add netapp ontapdevices man page

Signed-off-by: Martin George <marting@netapp.com>
Reviewed-by: Steve Schremmer <sschremm@netapp.com>
6 years agonvme-cli: add netapp ontapdevices command
Martin George [Mon, 1 Apr 2019 16:39:56 +0000 (09:39 -0700)]
nvme-cli: add netapp ontapdevices command

Add a new ontapdevices command to the NetApp plugin for
NetApp ONTAP devices.

Signed-off-by: Martin George <marting@netapp.com>
Reviewed-by: Steve Schremmer <sschremm@netapp.com>
6 years agotests: Update print to print() for python3
Minwoo Im [Sun, 7 Apr 2019 11:24:55 +0000 (20:24 +0900)]
tests: Update print to print() for python3

The following issue has been reported that README in "tests" seems not
correct because it will not be able to be invoked in case python3
because print() has to be taken instead of print which had been used for
python2.

Issue !429:
  https://github.com/linux-nvme/nvme-cli/issues/429

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
6 years agonvme: Simplify virt-mgmt options to lowercase
Minwoo Im [Sun, 7 Apr 2019 10:32:53 +0000 (19:32 +0900)]
nvme: Simplify virt-mgmt options to lowercase

All the other subcommand options are supported with lowercase, but
virt-mgmt subcommand has long argument name started with uppercase.
This can be simplified to a lowercase with being the same with the names
on spec document.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
6 years agonvme: Simplify description for virt-mgmt
Minwoo Im [Sun, 7 Apr 2019 10:30:25 +0000 (19:30 +0900)]
nvme: Simplify description for virt-mgmt

The options of virt-mgmt subcommand can be simplified for a good
readability.  This patch not only adds necessary whitespace between
sentences, but remove unnecessary empty line and words which might cause
too long line to describe options.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
6 years agonvme: Unify min(), max() macro as a common one
Minwoo Im [Sun, 7 Apr 2019 10:00:19 +0000 (19:00 +0900)]
nvme: Unify min(), max() macro as a common one

min, max macros has been implemented on its own module.  This patch
unifies this kind of macros by moving it to common.h.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
6 years agonvme: Use ARRAY_SIZE() macro in common.h
Minwoo Im [Sun, 7 Apr 2019 09:51:08 +0000 (18:51 +0900)]
nvme: Use ARRAY_SIZE() macro in common.h

array_len() in nvme.c can be replaced with ARRAY_SIZE() in common.h
which is already used from other modules such as fabrics.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
6 years agoioctl: Free memory if get_property for fabrics failed
Minwoo Im [Sat, 6 Apr 2019 21:45:16 +0000 (06:45 +0900)]
ioctl: Free memory if get_property for fabrics failed

The given *pbar is allocated inside this function without freeing it
will be freed from the caller in case of show-regs subcommand for NVMe-oF
controller.

If Get Property is failed because it has PCIe transport, then it needs
to be freed here instead of caller.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
6 years agodoc: Update show-regs document with output-format
Minwoo Im [Sat, 6 Apr 2019 21:12:29 +0000 (06:12 +0900)]
doc: Update show-regs document with output-format

Previous commit has introduced --output-format argument for show-regs
subcommand so that document should be updated.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
6 years agonvme: Support raw_binary and json format for show-regs
Minwoo Im [Sat, 6 Apr 2019 21:01:17 +0000 (06:01 +0900)]
nvme: Support raw_binary and json format for show-regs

  Somebody might want to compare entire controller registers in a raw
binary format to check controller status or some of configurations.  It
also can be needed to print out JSON format for easily parsing.

This patch introduces JSON and RAW_BINARY print format with a general
--output-format argument.  This will have "normal" value by default, and
also support "json" and "binary".

We don't care about whether the given "fabrics" argument in
json_ctrl_registers() because all the reserved registers and fields are
to be returned as 0x0 as specified in NVMe-oF "Property Definitions"
section.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
6 years agoMerge pull request #469 from kheitke/timestamps
Keith Busch [Fri, 5 Apr 2019 18:48:57 +0000 (12:48 -0600)]
Merge pull request #469 from kheitke/timestamps

Print timestamp as a date and time string

6 years agoPrint timestamp as a date and time string
Kenneth Heitke [Fri, 5 Apr 2019 18:18:30 +0000 (12:18 -0600)]
Print timestamp as a date and time string

Signed-off-by: Kenneth Heitke <kenneth.heitke@intel.com>
6 years agoMerge pull request #466 from minwooim/for-1.8/return-negative-errno
Keith Busch [Thu, 4 Apr 2019 16:02:22 +0000 (10:02 -0600)]
Merge pull request #466 from minwooim/for-1.8/return-negative-errno

fabrics: Return negative errno to check failure in discovery

6 years agoMerge pull request #467 from minwooim/for-1.8/fabrics-doc-update
Keith Busch [Thu, 4 Apr 2019 15:59:14 +0000 (09:59 -0600)]
Merge pull request #467 from minwooim/for-1.8/fabrics-doc-update

doc: Update fabrics documentations

6 years agoMerge pull request #468 from kheitke/master
Keith Busch [Thu, 4 Apr 2019 15:58:56 +0000 (09:58 -0600)]
Merge pull request #468 from kheitke/master

Fix possible memory leak on get-internal-log

6 years agoFix format block size usage
Keith Busch [Thu, 4 Apr 2019 15:37:57 +0000 (09:37 -0600)]
Fix format block size usage

Block size is valid only if formatting a specific namespace can be
queried.

Signed-off-by: Keith Busch <keith.busch@intel.com>
6 years agoFix possible memory leak on get-internal-log
Kenneth Heitke [Wed, 3 Apr 2019 23:45:43 +0000 (17:45 -0600)]
Fix possible memory leak on get-internal-log

6 years agodoc: Add missing commands to main document entry
Minwoo Im [Wed, 3 Apr 2019 16:30:33 +0000 (01:30 +0900)]
doc: Add missing commands to main document entry

cmds-main.txt has the entire command sets provided by nvme-cli.  This
patch added the following commands which has already had corresponding
documents already.
1. nvme-connect-all
2. nvme-disconnect
2. nvme-disconnect-all

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
6 years agodoc: Update nvme-disconnect by describing options
Minwoo Im [Wed, 3 Apr 2019 16:28:36 +0000 (01:28 +0900)]
doc: Update nvme-disconnect by describing options

Few newly added options have not been described.  This patch updates
document of nvme-connect.

It also makes "See Also" part style proper which have been applied
properly as a title.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
6 years agodoc: Update nvme-connect-all by describing options
Minwoo Im [Wed, 3 Apr 2019 16:27:17 +0000 (01:27 +0900)]
doc: Update nvme-connect-all by describing options

We have had newly added command options for Connect to all NVMe-oF subsystems.
This patch updates descriptions of command options.

+ This patch also fixes an trivial mis-aligned paragraph issue which can
be in this commit to avoid any confusions in document update which might
show too many diffs.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
6 years agodoc: Update nvme-connect by describing options
Minwoo Im [Wed, 3 Apr 2019 16:25:47 +0000 (01:25 +0900)]
doc: Update nvme-connect by describing options

Few newly added options have not been described.  This patch updates
document of nvme-connect.

It also makes "See Also" part style proper which have been applied
properly as a title.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
6 years agodoc: Update nvme-discover by describing options
Minwoo Im [Wed, 3 Apr 2019 16:24:07 +0000 (01:24 +0900)]
doc: Update nvme-discover by describing options

We have had newly added command options for Discover controller.  This
patch updates descriptions of command options.

+ This patch also fixes an trivial mis-aligned paragraph issue which can
be in this commit to avoid any confusions in document update which might
show too many diffs.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
6 years agofabrics: Return negative errno to check remove_ctrl() is failed
Minwoo Im [Wed, 3 Apr 2019 15:02:05 +0000 (00:02 +0900)]
fabrics: Return negative errno to check remove_ctrl() is failed

remove_ctrl() might fail due to a reason such as memory allocation
failure.  Once it fails, discovery should not proceed, but return the
errorno to the caller immediately.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
6 years agofabrics: Return negative errno when asprintf() fails
Minwoo Im [Wed, 3 Apr 2019 14:53:33 +0000 (23:53 +0900)]
fabrics: Return negative errno when asprintf() fails

asprintf() will return -1 when it fails to allocate memory for the
string given with setting errno to ENOMEM.  For the uniformity, we can
return errno with negative value.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
6 years agoMerge pull request #465 from kheitke/master
Keith Busch [Tue, 2 Apr 2019 09:03:21 +0000 (03:03 -0600)]
Merge pull request #465 from kheitke/master

Fix possible NULL pointer dereferences

6 years agoFix possible NULL pointer dereferences
Kenneth Heitke [Mon, 1 Apr 2019 18:15:55 +0000 (12:15 -0600)]
Fix possible NULL pointer dereferences

6 years agoMerge pull request #464 from kheitke/master
Keith Busch [Tue, 19 Mar 2019 17:41:31 +0000 (11:41 -0600)]
Merge pull request #464 from kheitke/master

Add reporting of Virtual Management support to id-ctrl

6 years agoAdd reporting of Virtual Management support to id-ctrl
Kenneth Heitke [Tue, 19 Mar 2019 17:34:38 +0000 (11:34 -0600)]
Add reporting of Virtual Management support to id-ctrl

6 years agoWDC Plugins vs-internal-log command unsupported on SN340.
Jeffrey Lien [Mon, 18 Mar 2019 15:25:27 +0000 (15:25 +0000)]
WDC Plugins vs-internal-log command unsupported on SN340.

Signed-off-by: Jeff Lien <jeff.lien@wdc.com>
6 years agowdc: Additional device capabilities check
Dong Ho [Mon, 11 Mar 2019 20:34:11 +0000 (20:34 +0000)]
wdc: Additional device capabilities check

6 years agoWDC plugin Change vs-internal-log Command to Save Partial E6 Log Data.
Jeffrey Lien [Wed, 6 Mar 2019 17:01:49 +0000 (17:01 +0000)]
WDC plugin Change vs-internal-log Command to Save Partial E6 Log Data.

Signed-off-by: Jeff Lien <jeff.lien@wdc.com>
6 years agonvme: print I/O error to stderr
Sagi Grimberg [Wed, 6 Mar 2019 09:42:31 +0000 (01:42 -0800)]
nvme: print I/O error to stderr

something like blktests might rely on this to output to
stderr.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
6 years agoMerge pull request #460 from 0mp/master
Keith Busch [Tue, 5 Mar 2019 15:23:15 +0000 (08:23 -0700)]
Merge pull request #460 from 0mp/master

Clean up README and FreeBSD installation instructions

6 years agoMerge pull request #459 from roys-lb/roy/fix_ctratt_print
Keith Busch [Tue, 5 Mar 2019 15:22:33 +0000 (08:22 -0700)]
Merge pull request #459 from roys-lb/roy/fix_ctratt_print

nvme-print: Fix evaluation of ctratt on pretty print

6 years agoAdd FreeBSD installation instructions
Mateusz Piotrowski [Mon, 4 Mar 2019 14:49:06 +0000 (15:49 +0100)]
Add FreeBSD installation instructions

6 years agoSort operating systems alphabetically
Mateusz Piotrowski [Mon, 4 Mar 2019 14:48:42 +0000 (15:48 +0100)]
Sort operating systems alphabetically

6 years agoFix markdown indentation issues
Mateusz Piotrowski [Mon, 4 Mar 2019 14:45:29 +0000 (15:45 +0100)]
Fix markdown indentation issues

Some code blocks were not rendered as code blocks, but as headers
instead.

6 years agonvme-print: Fix evaluation of ctratt on pretty print
Roy Shterman [Mon, 4 Mar 2019 12:10:34 +0000 (14:10 +0200)]
nvme-print: Fix evaluation of ctratt on pretty print

We accidantly evaluated SHIFT operation before AND
operation which caused wrong values to be printed
using Human Readable output (-H).

Signed-off-by: Roy Shterman <roys@lightbitslabs.com>
6 years agowdc: Add data area extraction for DUI command
Dong Ho [Thu, 28 Feb 2019 19:57:36 +0000 (19:57 +0000)]
wdc: Add data area extraction for DUI command

Signed-off-by: Dong Ho <dong.ho@wdc.com>
6 years agoGenerate new documentation
Keith Busch [Wed, 27 Feb 2019 22:52:13 +0000 (15:52 -0700)]
Generate new documentation

Signed-off-by: Keith Busch <keith.busch@intel.com>
6 years agowdc: Add command to extract NAND statistics
Dong Ho [Wed, 27 Feb 2019 00:21:53 +0000 (00:21 +0000)]
wdc: Add command to extract NAND statistics

6 years agoNVMe-CLI WDC Plugin - add support for additional SN840 device ID.
Jeffrey Lien [Wed, 27 Feb 2019 15:29:53 +0000 (15:29 +0000)]
NVMe-CLI WDC Plugin - add support for additional SN840 device ID.

Signed-off-by: Jeff Lien <jeff.lien@wdc.com>
6 years agonvme-cli: align all the macros
Chaitanya Kulkarni [Wed, 6 Feb 2019 22:59:56 +0000 (14:59 -0800)]
nvme-cli: align all the macros

Due to the addition of a lot of code in the WDC Plugin over a period
of time it has non-aligned macro definitions. This is purely cleanup
patch which makes all the macros aligned nicely which makes code
readable.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
6 years agowdc: Update file parameter checking
Dong Ho [Mon, 4 Feb 2019 19:54:05 +0000 (19:54 +0000)]
wdc: Update file parameter checking

6 years agowdc: Update device capabilities for clear pcie corr
Dong Ho [Mon, 4 Feb 2019 19:54:05 +0000 (19:54 +0000)]
wdc: Update device capabilities for clear pcie corr

6 years agonvme-cli: fix fc trtype string
James Smart [Mon, 4 Feb 2019 21:39:54 +0000 (13:39 -0800)]
nvme-cli: fix fc trtype string

Commit 55b4ec12ffe4
("fabrics: use trtype_str when parsing a discovery log entry")
changed to use the trtypes string names in a generic fashion for
the "transport=?" string passed in the connect string to the kernel.

For FC, this meant the hardcoding of "transport=fc" was removed and
the generic code would now create "transport=fibre-channel", which
doesn't match any transport name anymore once the string is attempted
to be matched in the kernel.

Change the string used by for trtype for FC to use "fc" to restore
operation.

Signed-off-by: James Smart <jsmart2021@gmail.com>
6 years agoAdd new docs to repository
Keith Busch [Wed, 30 Jan 2019 20:29:08 +0000 (13:29 -0700)]
Add new docs to repository

Signed-off-by: Keith Busch <keith.busch@intel.com>
6 years agoRegen documentation
Keith Busch [Tue, 29 Jan 2019 15:50:52 +0000 (08:50 -0700)]
Regen documentation

Signed-off-by: Keith Busch <keith.busch@intel.com>
6 years agowdc: Add drive resize command
Dong Ho [Mon, 28 Jan 2019 23:32:39 +0000 (23:32 +0000)]
wdc: Add drive resize command

6 years agowdc: Add clear assert dump status command
Dong Ho [Mon, 28 Jan 2019 23:32:39 +0000 (23:32 +0000)]
wdc: Add clear assert dump status command

6 years agowdc: Add get drive status command
Dong Ho [Mon, 28 Jan 2019 23:32:38 +0000 (23:32 +0000)]
wdc: Add get drive status command

In addition, updated checks for supported log pages and capabilities

6 years agowdc: Add device unit info log extraction
Dong Ho [Mon, 28 Jan 2019 23:32:37 +0000 (23:32 +0000)]
wdc: Add device unit info log extraction

6 years agonvme-cli: minor cleanup for submit_io()
Chaitanya Kulkarni [Tue, 29 Jan 2019 07:12:02 +0000 (23:12 -0800)]
nvme-cli: minor cleanup for submit_io()

This is a cleanup patch which adds errno based error messages when
write() failure, this also fixes minor typo and removes unnecessary
braces.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
[fixed typo in changelog, minor style code change]
Signed-off-by: Keith Busch <keith.busch@intel.com>
6 years agoFix print format specifiers
Keith Busch [Tue, 29 Jan 2019 00:58:13 +0000 (17:58 -0700)]
Fix print format specifiers

User the macros for different archs.

Signed-off-by: Keith Busch <keith.busch@intel.com>
6 years agoRegen docs
Keith Busch [Tue, 29 Jan 2019 00:50:10 +0000 (17:50 -0700)]
Regen docs

Signed-off-by: Keith Busch <keith.busch@intel.com>
6 years agoMerge branch 'master' of https://github.com/benreese0/nvme-cli into benreese0-master
Keith Busch [Tue, 29 Jan 2019 00:48:47 +0000 (17:48 -0700)]
Merge branch 'master' of https://github.com/benreese0/nvme-cli into benreese0-master

Fixed merge conflicts.

6 years agonvme-cli: fix compilation with uint64_t cast
Chaitanya Kulkarni [Fri, 25 Jan 2019 15:54:32 +0000 (08:54 -0700)]
nvme-cli: fix compilation with uint64_t cast

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
6 years agoAdding a helper to format command to enable the user to specify desired block size...
Maxim [Wed, 23 Jan 2019 23:12:36 +0000 (15:12 -0800)]
Adding a helper to format command to enable the user to specify desired block size and have nvme-cli determine the correct LBAF and add format helper to nvme-create-ns command

6 years agoMerge pull request #451 from leitao/master
Keith Busch [Tue, 22 Jan 2019 16:27:09 +0000 (09:27 -0700)]
Merge pull request #451 from leitao/master

Fix building issues

6 years agoFix CFLAGS parameter
Breno Leitao [Mon, 21 Jan 2019 12:03:24 +0000 (07:03 -0500)]
Fix CFLAGS parameter

Currently nvme-cli 1.7 is not compiling on Debian because the Debian helper
(compilation toolkit) does pass a CFLAGS variable, thus, avoiding the
initial definition (CFLAGS ?= -O2 -g -Wall -Werror -I.)

The problem is that -I should not be removed, otherwise the code does not
compile, with the following bug:

cc -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D__CHECK_ENDIAN__ -g -O2 -fdebug-prefix-map=/home/breno/nvme/nvme-cli-1.7=. -fstack-protector-strong -Wformat -Werror=format-security -std=gnu99 -DLIBUUID -DNVME_VERSION='"1.7"' -o plugins/intel/intel-nvme.o -c plugins/intel/intel-nvme.c
plugins/intel/intel-nvme.c:10:18: fatal error: nvme.h: No such file or directory
compilation terminated.

This patch just moves the -I parameter to part of the CFLAGS that is not
replaced by dh's CFLAGS.

Signed-off-by: Breno Leitao <leitao@debian.org>
6 years agoFix compilation with GCC-8
Breno Leitao [Mon, 21 Jan 2019 11:31:15 +0000 (06:31 -0500)]
Fix compilation with GCC-8

Printf() is being called to print an unsigned long int using the long long
identifier. This causes the following error with GCC-8:

nvme.c:3056:5: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘__u64 {aka long unsigned int}’ [-Werror=format=]
     "Invalid value for block size (%llu), must be a power of two\n",
     ^
nvme.c:3091:6: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘__u64 {aka long unsigned int}’ [-Werror=format=]
      "LBAF corresponding to block size %llu (LBAF %u) not found\n",

Adjusting the printf arguments to print the proper format.

Signed-off-by: Breno Leitao <leitao@debian.org>
6 years agogenerate new documentation
Keith Busch [Fri, 11 Jan 2019 20:58:38 +0000 (13:58 -0700)]
generate new documentation

For new vendor specific commands.

Signed-off-by: Keith Busch <keith.busch@intel.com>
6 years agowdc: Add additional device for vs-internal-log
Dong Ho [Fri, 11 Jan 2019 00:37:09 +0000 (00:37 +0000)]
wdc: Add additional device for vs-internal-log

Add support for SN730 device to vs-internal-log.

Reviewed-by Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>

6 years agowdc: Change device capability checking
Dong Ho [Fri, 11 Jan 2019 00:37:06 +0000 (00:37 +0000)]
wdc: Change device capability checking

Changes the way device VID and type are checked for compatibility
purposes. Other minor changes for command names, update the respective
documentation file names, and remove deprecated C1 log functionality.

6 years agonvme: Release 1.7 v1.7
Keith Busch [Fri, 11 Jan 2019 00:25:03 +0000 (17:25 -0700)]
nvme: Release 1.7

Thank you to all the contributions in this release. Lots of new options,
spec features, output updates, and bug fixes. Shortlog below.

Austin J Eberle (1):
      nvme-cli: prevent resv action field overflow

Benreese0 (1):
      nvme: Adding a block size selector to format

Chaitanya Kulkarni (23):
      nvme-cli: remove unnecessary assignments
      nvme-cli add ns write protect feature support
      nvme-cli: add minimal ana-log page support
      nvme-cli: add ana-log documentation
      nvme-cli: make show_registers_cap() static
      nvme-cli: wdc-plugin mark array static declaration
      nvme-cli: fix sparse warnings for declaration
      nvme-cli: don't use unsigned for fd in lnvm-nvme.c
      nvme-cli: remove always true condition for u8
      nvme-cli: fix dead-code nvmf log page discovery
      nvme-cli: code cleanup for passthru() handlers
      nvme-cli: fix scaandir() return value
      nvme-cli: use uniform error message for open
      nvme-cli: fix indentation
      nvme-cli: make wdc plug-in functions static
      nvme-cli: mark functions static
      nvme-cli: make malloc error handling uniform
      nvme-cli: fix indentation for dir_[send/receive]
      nvme-cli: make read error handling uniform
      nvme-cli: fix sanitize status endianness
      nvme-cli: fix ana-log endianness
      nvme-cli: fix array len to hold string of size 4
      nvme-cli: fix endianness for the structure field

Dan Bond (1):
      README: update Arch Linux install instructions

David Milburn (1):
      nvme-cli: report subsystem-reset not supported by controller

Dong Ho (6):
      nvme-cli: tests: fix fw_log test coding style
      nvme-cli: tests: fix id_ctrl test coding style
      nvme-cli: tests: fix id_ns test coding style
      nvme-cli: tests: Add get_id_ctrl function
      nvme-cli wdc plugin: Add get pfail dump command.
      nvme-cli wdc plugin: Add documentation for pfail dump.

Eyal Ben David (8):
      nvme-print.c : fix ns-descs JSON output
      nvme-get-property : Add documentation
      nvme-models.c - search for pci.ids
      nvme list : fix nvme list output if identify failed on device
      attach-ns : fix segfault for ctrl list wrong input
      nvme.spec.in : fix bash completion path, require
      Refactor plugins in a file hierarchy
      connect-all: special treatment to EALREADY afetr write to /dev/nvme-fabrics

Hannes Reinecke (13):
      nvme-ana-log: fixup compiler warning in show_ana_log()
      nvme-vendor: fixup c99 declaration in huawei plugin
      nvme-discover: sanitize options
      nvme-discover: Retry discovery log if the generation counter changes
      nvme-ioctl: retrieve log pages in 4k chunks
      nvme-discover: Re-check generation counter after log page transfer
      seagate-nvme: fixup coding style
      nvme-cli: Add 'rae' argument to nvme_get_log()
      nvme-cli: kill nvme_passthru_admin()
      nvme: fixup ANA group descriptor offset
      nvme: introduce get_nvme_ctrl_attr()
      nvme: print out controller state for 'list-subsys'
      nvme-list-subsys: Add device name argument and print out ANA state

Harry Mallon (3):
      micron-nvme: Replace direct use of ioctl
      Fix typos in docs
      Fix typos in tests and utils

Jeff Lien (1):
      nvme-cli: Fix the displayed metadata length value on Big Endian systems.

Jeffrey Lien (5):
      Add PCI device id checking for the WDC plugin commands.
      Fix nvme test device selection to use controller value defined in the config.json file. Before this fix, the value was hard coded to nvme0.
      NVMe-CLI WDC Plugin - Simplify the device id checking routines.
      nvme-cli: Add wdc-plugin command vs-internal-log and update wdc-plug cap-diag command with transfer-size parameter.
      nvme-cli: Add help text for wdc-plugin command vs-internal-log. Update help text for wdc-plugin command cap-diag.

Johannes Thumshirn (2):
      fabrics: write ctrl_loss_tmo to fabrics device on connect
      fabrics: write keep-alive-timeout to fabrics device on connect

Keith Busch (15):
      Fix print format specifier for 64-bit
      Fix nvme id namespace struct
      Regen documentation
      Update gitignore for generated test files
      Update documentation
      Re-gen documentation for new files
      wdc: Fix strncpy warning
      wdc: Use const string for suffix
      nvme: Handle supported capabilities result for get features
      list-subsys: Preserve line breaks and spaces
      Regen documentation
      nvme-cli: Don't print result on passthru error
      Update documentation
      nvme: Regenerate documentation
      nvme: Remove duplicate error message

M. Warner Losh (2):
      Initialize line.
      Use standard interfaces to get timezone offsets.

Minwoo Im (2):
      nvme-cli: fix typo in json_print_list_items
      nvme-cli: readme: fix typo in Alpine distro support

Morten Linderud (1):
      Added zsh completion installation

Narasimhan V (1):
      Use tnvmcap register for creating namespace

Peter Dave Hello (1):
      Enable code block syntax highlight in README.md

Ralph Corderoy (1):
      Enlarge local char[] so snprintf(3) can't truncate path.

Rami Rosen (2):
      nvme-cli: fix a typo
      nvme-cli: fix a typo

Sagi Grimberg (13):
      fabrics: make some arguments integers
      fabrics: don't fail empty discovery log page
      nvme: commonize subsystems info in a helper
      fabrics: add disconnect-all command
      fabrics: support fabrics sq flow control disable
      fabrics: use trtype_str when parsing a discovery log entry
      nvme: Add TCP transport
      fabrics: add tcp port tsas decoding
      fabrics: add transport header and data digest
      nvme-ioctl: clear rae for discovery log pages
      fabrics: pass in number of write queues
      fabrics: pass in number of polling queues
      fabrics: allow nr_io/write/poll_queues and queue size to discovery

Schremmer, Steven (1):
      nvme-cli: netapp plugin handle empty strings

Stefan Wiehler (1):
      Makefile: fix bash completion install path

Sushma Kalakota (1):
      Added support for virtualization-management command

Tal Shorer (1):
      don't execute a command if --dry-run is supplied

Warner Losh (7):
      Use sys/ioctl.h to pull in definitions.
      Remove unnecessary asm/byteorder.h
      Remove unnecessary linux/types.h include.
      Include libgen.h for basename prototype.
      Include sys/stat.h
      nvme-cli: remove endian.h
      nvme-cli: fix ioctl argument

Warner.Losh (1):
      We don't need to include linux/types.h here.

Yi Zhang (1):
      nvme-cli: print "\n" after nvme list-subsys -o json

beomsooo.kim (1):
      In json output, if the commands add zero length string, it occur allocation fail & abort (cannot display empty value)

chrono (1):
      Added gentoo to README.md

freezer5 (2):
      Fix printing of large ANAGRPID values
      Fix printing of large ANAGRPID values

jaredeh (1):
      timeout option added to ns_create/delete (#440)

lijie (2):
      nvme-cli:fix a typo in SELF-TEST log
      nvme-cli: fix a typo

puneet kandhari (1):
      Remove trailing "\n" so that the output is valid json

Signed-off-by: Keith Busch <keith.busch@intel.com>
6 years agorpm spec file: add zsh completion (#447)
bdeyal [Thu, 10 Jan 2019 17:27:08 +0000 (19:27 +0200)]
rpm spec file: add zsh completion (#447)

6 years agonvme: Remove duplicate error message
Keith Busch [Wed, 9 Jan 2019 22:43:00 +0000 (15:43 -0700)]
nvme: Remove duplicate error message

Link: https://github.com/linux-nvme/nvme-cli/issues/446
Signed-off-by: Keith Busch <keith.busch@intel.com>
6 years agotimeout option added to ns_create/delete (#440)
jaredeh [Wed, 9 Jan 2019 18:33:57 +0000 (10:33 -0800)]
timeout option added to ns_create/delete (#440)

* adding timeout option to create namespace command

* Add --timeout to nvme_delete

6 years agoMerge branch 'benreese0-master'
Keith Busch [Wed, 9 Jan 2019 00:46:47 +0000 (17:46 -0700)]
Merge branch 'benreese0-master'

6 years agonvme: Regenerate documentation
Keith Busch [Wed, 9 Jan 2019 00:46:26 +0000 (17:46 -0700)]
nvme: Regenerate documentation

Signed-off-by: Keith Busch <keith.busch@intel.com>
6 years agonvme: Adding a block size selector to format
Benreese0 [Tue, 8 Jan 2019 22:59:19 +0000 (14:59 -0800)]
nvme: Adding a block size selector to format

Provide format option to allow the user to specify desired block size
and have nvme-cli determine the correct LBAF.

Signed-off-by: Benjamin Reese <benjamin.reese@intel.com>
[changelog, minor formatting, shift lbaf instead of bs, reference id_ns
only if we read it]
Signed-off-by: Keith Busch <keith.busch@intel.com>
6 years agofabrics: allow nr_io/write/poll_queues and queue size to discovery
Sagi Grimberg [Tue, 8 Jan 2019 07:55:31 +0000 (23:55 -0800)]
fabrics: allow nr_io/write/poll_queues and queue size to discovery

The discovered controllers will inherit the arguments.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
6 years agoMerge pull request #444 from syscll/master
Keith Busch [Thu, 3 Jan 2019 16:18:43 +0000 (09:18 -0700)]
Merge pull request #444 from syscll/master

README: update Arch Linux install instructions

6 years agoREADME: update Arch Linux install instructions
Dan Bond [Thu, 3 Jan 2019 14:52:33 +0000 (14:52 +0000)]
README: update Arch Linux install instructions

6 years agoUpdate documentation
Keith Busch [Wed, 2 Jan 2019 15:59:55 +0000 (08:59 -0700)]
Update documentation

6 years agofabrics: pass in number of polling queues
Sagi Grimberg [Thu, 13 Dec 2018 06:10:52 +0000 (22:10 -0800)]
fabrics: pass in number of polling queues

nr_poll_queues specifies the number of additional queues that will
be connected for hosting polling latency critical I/O.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
6 years agofabrics: pass in number of write queues
Sagi Grimberg [Thu, 13 Dec 2018 06:07:49 +0000 (22:07 -0800)]
fabrics: pass in number of write queues

nr_write_queues specifies the number of additional queues that
will be connected. These queues will host write I/O (host to target
payload) while nr_io_queues will host read I/O (target to host payload).

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
6 years agoMerge pull request #439 from Sushmakk/nvme-cli_virtualization_cmd
Keith Busch [Wed, 2 Jan 2019 15:41:15 +0000 (08:41 -0700)]
Merge pull request #439 from Sushmakk/nvme-cli_virtualization_cmd

nvme-cli: Added support for virtualization-management command

6 years agoMerge pull request #441 from minwooim/v1.7/fix_typo_in_readme
Keith Busch [Wed, 2 Jan 2019 15:40:43 +0000 (08:40 -0700)]
Merge pull request #441 from minwooim/v1.7/fix_typo_in_readme

nvme-cli: readme: fix typo in Alpine distro support

6 years agoMerge pull request #442 from chron0/patch-1
Keith Busch [Fri, 28 Dec 2018 16:00:14 +0000 (09:00 -0700)]
Merge pull request #442 from chron0/patch-1

Added gentoo to README.md

6 years agoAdded gentoo to README.md
chrono [Sat, 22 Dec 2018 00:11:50 +0000 (00:11 +0000)]
Added gentoo to README.md

Working 1.6 build and functional output on current gentoo from mainline portage

6 years agonvme-cli: readme: fix typo in Alpine distro support
Minwoo Im [Tue, 18 Dec 2018 16:35:22 +0000 (01:35 +0900)]
nvme-cli: readme: fix typo in Alpine distro support

Fix typo 'akp' to 'apk'.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
6 years agonvme-cli: Don't print result on passthru error
Keith Busch [Mon, 17 Dec 2018 20:06:50 +0000 (13:06 -0700)]
nvme-cli: Don't print result on passthru error

The kernel doesn't copy CQE DW0 to the ioctl result on error, so don't
print it.

Signed-off-by: Keith Busch <keith.busch@intel.com>
6 years agoAdded support for virtualization-management command
Sushma Kalakota [Thu, 6 Dec 2018 20:30:13 +0000 (12:30 -0800)]
Added support for virtualization-management command

6 years agoMerge pull request #430 from Foxboron/foxboron/zsh-completion-make
Keith Busch [Thu, 13 Dec 2018 22:24:36 +0000 (15:24 -0700)]
Merge pull request #430 from Foxboron/foxboron/zsh-completion-make

Added zsh completion installation

6 years agoMerge pull request #436 from hjmallon/spelling
Keith Busch [Thu, 13 Dec 2018 22:24:22 +0000 (15:24 -0700)]
Merge pull request #436 from hjmallon/spelling

Fix a host of typos in utils, tests and docs

6 years agonvme-ioctl: clear rae for discovery log pages
Sagi Grimberg [Fri, 7 Dec 2018 22:05:30 +0000 (14:05 -0800)]
nvme-ioctl: clear rae for discovery log pages

The discovery controller should now be able to send
us discovery log change events so we need to clear the
rae bit for that.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
6 years agofabrics: add transport header and data digest
Sagi Grimberg [Tue, 3 Jul 2018 11:32:46 +0000 (14:32 +0300)]
fabrics: add transport header and data digest

This setting is enabling header and data digest over NVMe/TCP
controllers.

Signed-off-by: Sagi Grimberg <sagi@lightbitslabs.com>
6 years agofabrics: add tcp port tsas decoding
Sagi Grimberg [Thu, 24 May 2018 11:46:01 +0000 (14:46 +0300)]
fabrics: add tcp port tsas decoding

tcp tsas include sectype indication for unsecured/tls ports.

Signed-off-by: Sagi Grimberg <sagi@lightbitslabs.com>
6 years agonvme: Add TCP transport
Sagi Grimberg [Sun, 6 Nov 2016 18:38:52 +0000 (20:38 +0200)]
nvme: Add TCP transport

Signed-off-by: Sagi Grimberg <sagi@lightbitslabs.com>
6 years agofabrics: use trtype_str when parsing a discovery log entry
Sagi Grimberg [Tue, 20 Nov 2018 21:26:06 +0000 (13:26 -0800)]
fabrics: use trtype_str when parsing a discovery log entry

Reduce some code duplication.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
6 years agofabrics: support fabrics sq flow control disable
Sagi Grimberg [Thu, 24 May 2018 11:45:30 +0000 (14:45 +0300)]
fabrics: support fabrics sq flow control disable

If the discovery log entry indicates that the subsystem supports
disabling sq flow control, we ask the host to connect and disable sq
flow control (omit sq_head pointer updates). Also add a connect option
to explicitly ask for disable_sqflow.

If we failed to add_ctrl in connect-all command, we retry without it
to be backward compatible with a driver that cannot accept the new
flag.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
6 years agoMerge pull request #435 from hjmallon/micron
Keith Busch [Thu, 29 Nov 2018 15:06:49 +0000 (08:06 -0700)]
Merge pull request #435 from hjmallon/micron

micron-nvme: Replace direct use of ioctl