Javier González [Mon, 30 Oct 2017 13:01:07 +0000 (14:01 +0100)]
lightnvm: enable to set OP on target creation
On target creation, allow to define the over-provision (OP). Since OP
area has a direct impact on write amplification, users can optimize the
OCSSD behavior for their workloads.
Support in the kernel has been upstreamed in 4.16
Signed-off-by: Javier González <javier@cnexlabs.com>
Update smart-log-add command documentation in intel plugin with
output-format parameter description.
In github issue #175, tim-oleksii reported that descriptions of
output-format whose implementation was added in Pull request #178 was
not added in documentation.
Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
Minwoo Im [Wed, 10 Jan 2018 15:13:33 +0000 (00:13 +0900)]
nvme-cli: lnvm: remove unnecessary force parameter of ns-id in lnvm
If identify geometry is failed, then nvme-cli is not to print out
information of namespace.
Also no one uses this _force_ flag in this subcommand.
So, remove this unnecessary parameter.
Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
Minwoo Im [Fri, 15 Dec 2017 16:12:06 +0000 (01:12 +0900)]
nvme-cli: add BPS bit field to CAP controller register
NVMe 1.3 spec introduced BPS(Boot Partition Support) bit field in CAP of
controller register.
Add this bit field to "struct nvme_bar_cap" by changing
"css_nssrs_dstrd" field to "bps_css_nssrs_dstrd".
Also add a print for BPS bit field to print CAP properly when show-regs
command with human-readable.
Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
Keith Busch [Wed, 3 Jan 2018 15:37:02 +0000 (08:37 -0700)]
Release v1.5
It's been a while since the previous release, and we've accumulated
enough updates to warrant a new tag. Shortlog below.
There are printing fixes and improvements to output, documentation
updates, enhancements to vendor plugins, updates for the NVMe 1.3
Specification, a new command for listing subsystems, a new way to alias
sub-commands in case old ones need to be deprecated, fabrics fixes,
and resource leak fixes. Thank you to everyone who contributed!
Andrew Maier (2):
Nitpicked a printing alignment issue with the id-ns vendor specific field
Updated the human readable printing for the SGLS field in the id-ctrl command to be compliant with NVMe 1.3
David Manouchehri (1):
Avoid unnecessary abbreviation.
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
James Smart (2):
nvme-cli: add duplicate_connect parameter support
nvme-cli: add duplicate_connect parameter support
Jeff Lien (2):
NVMe-CLI : WDC-Plugin Updated Smart Log Command
NVMe-CLI : WDC-Plugin Documentation for Updated Smart Log Command
Johannes Thumshirn (2):
fabrics: also set queue_size and nr_io_queues on connect-all connects
nvme: Introduce new 'list-subsys' command
Keith Busch (28):
Add AEN decoder helper to get-log
Regen documentation
Merge pull request #228 from primeos/nixos
intel-nvme: Fix compiler errors and warnings
Merge pull request #229 from steve-gh/master
Add command effects log page
Increase default format timeout
Revert "nvme-cli: add duplicate_connect parameter support"
Merge pull request #230 from liangxiao1/upstream
Fix typo in previous commit
Fix long suffix parse on 32-bit machines
Merge pull request #232 from Manouchehri/verbose
nvme/flush: explicitely close file descriptor
Merge pull request #233 from cleandever/master
Add 'DEAC' support to write-zeroes command
Rebuild documentation
Regenerate documentation
Update get-feature help text
Improve code alignment on intel plugin
Update intel internal log man page.
nvme-cli/intel: Return if arg parsing returns error
nvme: add options for write command directives
Update documentation
Merge pull request #238 from Eideticom/andrew-dev
Reorder command list
Documentation fixes
Update documentation to use aliases
Merge pull request #243 from ScottyBauer/fix_mem_leak
Michael Weiss (2):
Add Nix(OS) install instructions to the README
Fix the Markdown code for the Alpine install instructions
Minwoo Im (11):
nvme-cli: make address print format more human-readable
nvme-cli: fix wrong bitmask in number of rpmb units.
nvme-cli: make command description const
nvme-cli: resync nvme.h with the kernel's
nvme-cli: update show_registers_cc() to use nvme.h
nvme-cli: replace values of all namespaces with NVME_NSID_ALL
nvme-cli: add prints for new HMB identify fields of TP 4002
nvme-cli: add support alias command with Firmware Activate
nvme-cli: update Firmware Commit with boot partition feature
nvme-cli: add command specific status of Firmware Commit
nvme-cli: add prints of boot partition feature to show-regs
Scott Bauer (1):
nvme-cli: Fix small mem leak.
Steve (2):
Include sizing data in json output that's already included in the non-json results.
Cleanup variable definitions
Xiao Liang (1):
nvme/id-ns: do not try to get namespace id from non-block device.
cleandever (1):
Fix memory leak
jeffreyalien (1):
nvme-cli : wdc-plugin Add support for WDC SN100 and SN200 devices.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Tue, 19 Dec 2017 20:33:49 +0000 (13:33 -0700)]
Update documentation to use aliases
Firmware activate is now called 'fw-commit', so this patch updates the
documentation, documents the options, and renames the man page. The firmware
activate will alias to the new man page if requested.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Minwoo Im [Sun, 17 Dec 2017 09:58:28 +0000 (18:58 +0900)]
nvme-cli: add support alias command with Firmware Activate
Firmware Activate command were known as "Firmware Activate" in NVMe 1.0
and 1.1. It has been changed to "Firmware Commit" since 1.2.
This patch will make it support a single alias for every subcommands.
Also make "fw-activate" command to be registered in "fw-commit" as an
alias for backward compatibility.
Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
Johannes Thumshirn [Wed, 13 Dec 2017 14:34:17 +0000 (15:34 +0100)]
nvme: Introduce new 'list-subsys' command
Introduce a 'nvme list-subsys' command to give basic information about
connected NVMe subsystems.
Here's an example output of a host connected to two subsystems on the
target with two paths to each subsystem:
root@host# nvme list-subsys
nvme-subsys0 - NQN=nvmf-test
\
+- nvme0 rdma traddr=1.1.1.3 trsvcid=4420 host_traddr=1.1.1.1
+- nvme1 rdma traddr=1.1.1.3 trsvcid=4420 host_traddr=1.1.1.2
nvme-subsys1 - NQN=nvmf-test2
\
+- nvme2 rdma traddr=1.1.1.3 trsvcid=4420 host_traddr=1.1.1.2
+- nvme3 rdma traddr=1.1.1.3 trsvcid=4420 host_traddr=1.1.1.1
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Keith Busch [Sun, 10 Dec 2017 16:42:09 +0000 (09:42 -0700)]
nvme: add options for write command directives
This patch includes options to specify the directive type and directive
specific. The field is meant to be used for write commands, but since
the code reuse for read, write, and compare currently exists, the options
will appear available to commands other than write.
Since the directive specific is part of the larger DSM field, this patch
also incorporates an option for the non-directive specific portion of
the DSM field.
https://github.com/linux-nvme/nvme-cli/issues/235
Signed-off-by: Keith Busch <keith.busch@gmail.com>
Minwoo Im [Thu, 30 Nov 2017 14:49:19 +0000 (23:49 +0900)]
nvme-cli: replace values of all namespaces with NVME_NSID_ALL
Replace all magic numbers(0xffffffff) which means all namespaces
with NVME_NSID_ALL applied by a commit c5a1120("nvme-cli: resync nvme.h with the kernel's").
Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
Jeff Lien [Tue, 28 Nov 2017 14:28:56 +0000 (08:28 -0600)]
NVMe-CLI : WDC-Plugin Updated Smart Log Command
Added the capability to get the CA Log Page data for the WDC SN200
drive along with the C1 Log Page data. Only the C1 Log Page data will
be retrieve for the HGST SN100 drive.
Signed-off-by: Jeff Lien <jeff.lien@wdc.com>
[Fixed subject and whitespace] Signed-off-by: Keith Busch <keith.busch@intel.com>