]>
www.infradead.org Git - users/sagi/nvme-cli.git/log
Stellios Leventis [Fri, 5 May 2023 01:08:50 +0000 (18:08 -0700)]
plugins/wdc: Extend SN530 support.
Extend SN530 SSD support for alternate PCI device IDs.
Tokunori Ikegami [Fri, 5 May 2023 13:09:36 +0000 (22:09 +0900)]
Fix incorrect article 'an' as 'a' to use for descriptions and message
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Fri, 5 May 2023 08:57:47 +0000 (17:57 +0900)]
nvme: Set effects-log command csi option help message string
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Fri, 5 May 2023 01:48:24 +0000 (10:48 +0900)]
completions: bash: Delete unsupported id-iocs command options
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Fri, 5 May 2023 01:40:47 +0000 (10:40 +0900)]
completions: bash: Add id-domain command
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Fri, 5 May 2023 00:19:37 +0000 (09:19 +0900)]
completions: Fix nvm-id-ns-lba-format command zsh definition
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Thu, 4 May 2023 22:31:15 +0000 (07:31 +0900)]
completions: Add json command option
It was introduced by the change
6aab9e49e but not added for command completion.
Note: The changes included some completion script files indentation fixes.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Thu, 4 May 2023 11:56:56 +0000 (20:56 +0900)]
nvme: Fix get-feature command sel parameter check to allow value 8
The parameter was changed to use value 8 also by the change
30b89e5ef .
Note: The value is used only for the command functionality to limit feature
output changed from default but not passed to the driver.
Fixes: 63dcb68c6 ("nvme: Fix parameter limit range")
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Thu, 4 May 2023 11:33:12 +0000 (20:33 +0900)]
util: Delete unnecessary argconfig definitions OPT_VAL and CFG_VAL
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Thu, 4 May 2023 03:47:21 +0000 (12:47 +0900)]
util: Delete argconfig value type to add option value as va lists instead
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Tue, 2 May 2023 16:04:28 +0000 (01:04 +0900)]
util: Split to set argconfig option value
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Tue, 2 May 2023 15:41:13 +0000 (00:41 +0900)]
util: Delete argconfig value length to calcurate instead
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Tue, 2 May 2023 03:08:43 +0000 (12:08 +0900)]
nvme: Change sanitize command action option to use argconfig parse value
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Sat, 29 Apr 2023 15:24:56 +0000 (00:24 +0900)]
util: Add argconfig parse value function
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Sun, 30 Apr 2023 13:35:46 +0000 (22:35 +0900)]
util: Delete unused argconfig subopts type
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Sun, 30 Apr 2023 13:07:48 +0000 (22:07 +0900)]
util: Delete unused argconfig file types
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Sat, 29 Apr 2023 15:24:29 +0000 (00:24 +0900)]
util: Delete unused argconfig help function
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Steven Seungcheol Lee [Fri, 28 Apr 2023 02:08:21 +0000 (11:08 +0900)]
nvme-wrap: do_admin_args_op should not clear args timeout
if set with NVME_DEFAULT_IOCTL_TIMEOUT, timeout parameter always ignored
Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
Reported-by: Daseul Lee <daseul.lee@samsung.com>
Tokunori Ikegami [Sun, 23 Apr 2023 04:58:20 +0000 (13:58 +0900)]
nvme: Fix linux kernel check patch warnings
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Fri, 21 Apr 2023 18:01:05 +0000 (03:01 +0900)]
nvme: Fix linux kernel check patch errors
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Arthur Shau [Thu, 6 Apr 2023 00:53:43 +0000 (17:53 -0700)]
plugins/ocp: Add telemetry-log command to OCP plugin
Arthur Shau [Wed, 5 Apr 2023 23:23:23 +0000 (16:23 -0700)]
plugins/ocp: Add OCP set latency monitor feature command
Arthur Shau [Wed, 5 Apr 2023 22:56:14 +0000 (15:56 -0700)]
plugins/ocp: Fix endianness in Latency Monitor Log output
OCP 2.0 spec changed the endianness for some of the fields in the C3 LM Log. Fixed this when outputting the values.
Arthur Shau [Wed, 5 Apr 2023 22:03:35 +0000 (15:03 -0700)]
plugins/ocp: Add missing fields in Latency Monitor Log
Changes include:
- Added Debug Log Measured Latency, Debug Log Latency Time Stamp, Debug Log Pointer, Debug Counter Trigger Source, Debug Log Stamp Units, Log Page Version, and Log Page GUID, as required by OCP 2.0 spec.
- Reorganized some of the output so that it (mostly) matches the order in which they show up in the spec.
Arthur Shau [Wed, 5 Apr 2023 21:13:25 +0000 (14:13 -0700)]
plugins/ocp: Fix typos in Latency Monitor Log
Changes include:
- Fixed the naming of some log page C3 constants that were incorrectly labelled as C0.
- Fixed a typo in the JSON output: 'lantency' -> 'latency'
Arthur Shau [Wed, 5 Apr 2023 21:03:03 +0000 (14:03 -0700)]
plugins/ocp: Reorganize OCP plugin source code
Shifted the location of some functions around so they're grouped together better. Also added separators in the comments so it's easy to distinguish which block of functions pertain to what command.
Arunpandian J [Tue, 25 Apr 2023 04:43:43 +0000 (10:13 +0530)]
tests: Add tests for controller reset
Signed-off-by: Arunpandian J <arun.j@samsung.com>
da Cunha, Leonardo [Fri, 3 Mar 2023 23:06:40 +0000 (15:06 -0800)]
plugin/solidigm: Added vs-internal-log command.
Tokunori Ikegami [Mon, 17 Apr 2023 15:26:03 +0000 (00:26 +0900)]
nvme: Add nvme_show_perror to use instead of perror for json output
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Mon, 17 Apr 2023 14:01:45 +0000 (23:01 +0900)]
nvme-print-json: Use vasprintf instead of vsnprintf to allocate string
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Maurizio Lombardi [Mon, 17 Apr 2023 13:39:56 +0000 (15:39 +0200)]
nvme: fix rnlpt to_string() values.
"Reservation Notification Log Page Type" values do not start
from 0x1 but from 0x0.
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Steven Seungcheol Lee [Mon, 17 Apr 2023 05:26:27 +0000 (14:26 +0900)]
build: Bump libnvme wrap to fix io_mgmt apis
TP4146 Flexible Data Placement 2022.11.30 Ratified Command Dword 10
Bits[31:16] : Management Operation Specific (MOS)
Bits[07:00] : Management Operation (MO)
https://github.com/linux-nvme/libnvme/pull/626
Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
Steven Seungcheol Lee [Mon, 17 Apr 2023 03:09:59 +0000 (12:09 +0900)]
nvme: fix io_mgmt args parse error
Since mos defined __u16, it should be parsed with OPT_SHRT
if mos given right after mo, it cause parse error
mo always set as 0
Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
Co-authored-by: Minsik Jeon <hmi.jeon@samsung.com>
Reported-by: Youngjin Jung <yj4369.jung@samsung.com>
Steven Seungcheol Lee [Mon, 17 Apr 2023 05:17:41 +0000 (14:17 +0900)]
fdp: set-events feature is saveable
TP4146 Flexible Data Placement 2022.11.30 Ratified
5.27.1.TBD1 Flexible Data Placement Events (Feature Identifier 1Eh)
mentioned as below
This Feature shall be saveable (refer to section 4.2).
Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
Reported-by: Youngjin Jung <yj4369.jung@samsung.com>
Tokunori Ikegami [Sun, 16 Apr 2023 06:19:11 +0000 (15:19 +0900)]
fabrics: Return errno value as negative
Changes for linux kernel check patch warnings remained.
Change to use `//` instead for proper SPDX comment style.
And also change symbolic permissions `S_IRUSR | S_IWUSR' as '0600'.
Note: Still remaining a check patch error.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Sat, 15 Apr 2023 11:37:12 +0000 (20:37 +0900)]
fabrics: Fix linux kernel check patch errors and warnings
Note: Still remaining some errors warnings.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Stuart Hayes [Sat, 15 Apr 2023 02:01:07 +0000 (22:01 -0400)]
nbft: add the nbft show plugin
Display contents of the ACPI NBFT files.
Usage: nvme nbft show <device> [OPTIONS]
Options:
[ --output-format=<FMT>, -o <FMT> ] --- Output format: normal|json
[ --subsystem, -s ] --- show NBFT subsystems
[ --hfi, -H ] --- show NBFT HFIs
[ --discovery, -d ] --- show NBFT discovery controllers
[ --nbft-path=<STR> ] --- user-defined path for NBFT tables
Signed-off-by: Stuart Hayes <stuart_hayes@dell.com>
Signed-off-by: Martin Wilck <mwilck@suse.com>
Signed-off-by: John Meneghini <jmeneghi@redhat.com>
Stuart Hayes [Wed, 15 Jun 2022 16:42:50 +0000 (11:42 -0500)]
nbft: added NBFT v1.0 table support
Added support for parsing the contents of the NBFT table (per NVMe-oF
boot specification v1.0) with the connect-all and discover commands.
nvme discover/connect-all --nbft ignore /etc/nvme config and use NBFT tables
nvme discover/connect-all --no-nbft ignore NBFT tables and use /etc/nvme config
nvme discover/connect-all --nbft-path=<STR> user-defined path for NBFT tables
Signed-off-by: Stuart Hayes <stuart_hayes@dell.com>
Signed-off-by: Martin Belanger <martin.belanger@dell.com>
Use the new nbft public API.
Signed-off-by: Tomas Bzatek <tbzatek@redhat.com>
Signed-off-by: Martin Wilck <mwilck@suse.com>
Signed-off-by: John Meneghini <jmeneghi@redhat.com>
John Meneghini [Fri, 14 Apr 2023 14:53:58 +0000 (10:53 -0400)]
nbft: make lookup_ctrl function public
To prepare for the addition of nbft functionality fixup the fabrics
declarations.
Signed-off-by: John Meneghini <jmeneghi@redhat.com>
Tokunori Ikegami [Sat, 15 Apr 2023 10:25:57 +0000 (19:25 +0900)]
nvme: Fix indentation errors around nvme show error API
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Sat, 15 Apr 2023 06:21:53 +0000 (15:21 +0900)]
nvme: Check validate output format err value instead of flags
Since the nvme print flags enum value not set to the negative value.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Sat, 15 Apr 2023 05:07:13 +0000 (14:07 +0900)]
nvme: Use nvme show error API to outptu stderr messages for json format
Multiple lines std error messages are remained yet since unsupported by the API.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Fri, 14 Apr 2023 17:56:12 +0000 (02:56 +0900)]
util: Check output format json for json error message output
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Fri, 14 Apr 2023 16:50:07 +0000 (01:50 +0900)]
nvme-printf: Add show error function for nvme list command json output
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Daniel Wagner [Mon, 17 Apr 2023 06:26:35 +0000 (08:26 +0200)]
build: Extend static linked binary build test
So far, the binary was still linking against the libc dynamically.
The final step to link completely statically can be achieved by setting
the LDFLAGS environment variable.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Fri, 14 Apr 2023 12:22:45 +0000 (14:22 +0200)]
build: Fix appimage configuration
Typo in the arguments to the ftp upload stage. The default mode is
already correct, so just drop it.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Fri, 14 Apr 2023 12:04:05 +0000 (14:04 +0200)]
doc: Update REAMDE
Update the build from source section and shorten the distro install
section.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Thu, 13 Apr 2023 11:00:55 +0000 (13:00 +0200)]
build: Update wrap mode defaults
We switched the default of the wrap mode to nofallback. Update the CI
builds accordingly.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Fri, 14 Apr 2023 07:45:03 +0000 (09:45 +0200)]
build: Extend summary section
List also the dependencies and the user configuration in the summary.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Fri, 14 Apr 2023 07:17:43 +0000 (09:17 +0200)]
build: Make json-c dependency lookup not fail
Let's relax the dependency on json-c, when the comman line option is set
to auto. It will just ignore the dependency if not found.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Thu, 13 Apr 2023 10:56:10 +0000 (12:56 +0200)]
build: Disable fallback on default
meson's default setting for wrap mode is to attempt to download missing
dependencies. Disable this feature as the community is unhappy with
this default behavior.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Thu, 13 Apr 2023 10:54:13 +0000 (12:54 +0200)]
build: Bump libnvme wrap
Get the wrap mode disable settings
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Steven Seungcheol Lee [Wed, 5 Apr 2023 04:12:13 +0000 (13:12 +0900)]
build: Bump libnvme.wrap to align create ns args
Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
Steven Seungcheol Lee [Wed, 5 Apr 2023 04:10:42 +0000 (13:10 +0900)]
nvme: Add zns specfic field for create ns
nvme_ns_mgmt_host_sw_specified_zns from TP4115 ZNS Namespace Management Enhancements 2022.03.15 Ratified
Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
Steven Seungcheol Lee [Mon, 13 Feb 2023 12:28:38 +0000 (21:28 +0900)]
nvme: Add ns-mgmt host software specified fields
nphndls, phndl from TP4146 Flexible Data Placement 2022.11.30 Ratified
Reported-by: Youngjin Jung <yj4369.jung@samsung.com>
Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
Steven Seungcheol Lee [Thu, 9 Feb 2023 04:18:46 +0000 (13:18 +0900)]
nvme: Add dtype, dspec on write-zeroes, write-uncor
Based on TP4146 Flexible Data Placement 2022.11.30 Ratified
Reported-by: Youngjin Jung <yj4369.jung@samsung.com>
Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
Steven Seungcheol Lee [Wed, 8 Feb 2023 06:43:46 +0000 (15:43 +0900)]
nvme-print: Add new fields print on id directive
Identify Directive – Return Parameters Data Structure
From TP4146 Flexible Data Placement 2022.11.30 Ratified
Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
Steven Seungcheol Lee [Wed, 8 Feb 2023 06:05:27 +0000 (15:05 +0900)]
nvme-print: Add VWCNP on NSFEAT of id-ns
Identify – I/O Command Set Independent Identify Namespace Data Structure
From TP4146 Flexible Data Placement 2022.11.30 Ratified
Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
Tokunori Ikegami [Wed, 12 Apr 2023 15:30:35 +0000 (00:30 +0900)]
nvme: Fix format command to skip to reread NSID all block device
Since if NSID all specified NS data is not identified so the reread failed.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
da Cunha, Leonardo [Thu, 16 Mar 2023 23:53:37 +0000 (16:53 -0700)]
plugins/solidigm: Fixes and clean-up of Telemetry parse code.
Fixed parsing of 64 bit values.
Fixed COD field name.
Fixed compilation warnings when compiling for 32 bit.
Added missing free().
Consolidated single entry function to telemetry parser.
Consolidated use of integer types.
Tokunori Ikegami [Tue, 11 Apr 2023 16:34:47 +0000 (01:34 +0900)]
doc: Documentations maintenance changes
Change the following commands documentations.
1. admin-passthru
2. get-feature
3. set-feature
4. clear-fw-activate-history
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Tue, 11 Apr 2023 16:35:53 +0000 (01:35 +0900)]
doc: Add nvme-mi-send command documentation
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Tue, 11 Apr 2023 16:16:04 +0000 (01:16 +0900)]
doc: Add nvme-mi-recv command documentation
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Tue, 11 Apr 2023 16:03:50 +0000 (01:03 +0900)]
doc: Add clear-pcie-correctable-error-counters command documentation
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Tue, 11 Apr 2023 16:01:18 +0000 (01:01 +0900)]
doc: Add eol-plp-failure-mode command documentation
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
kdedow [Thu, 30 Mar 2023 17:05:56 +0000 (10:05 -0700)]
plugins/solidigm: Add firmware activation history log to Solidigm plugin
kdedow [Thu, 30 Mar 2023 16:27:26 +0000 (09:27 -0700)]
plugins/ocp: Add firmware activation history log to OCP plugin
Daniel Wagner [Wed, 5 Apr 2023 12:31:25 +0000 (14:31 +0200)]
nvme-print: Use enum nvme_print_flags for nvme_show_id_ctrl
gcc is complaining that the function declaration and definition do not
match. Update the declaration accordingly.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Tokunori Ikegami [Tue, 4 Apr 2023 17:11:57 +0000 (02:11 +0900)]
nvme: Add support for NVMe-MI send command
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Mon, 3 Apr 2023 15:02:24 +0000 (00:02 +0900)]
nvme: Use stdout for passthru and submit_io commands success messages
Also fix submit_io command indentation errors.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Sun, 2 Apr 2023 15:33:23 +0000 (00:33 +0900)]
nvme: Fix passthru command function indentation errors
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Sun, 2 Apr 2023 15:15:05 +0000 (00:15 +0900)]
nvme: Add support for NVMe-MI receive command
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Martin George [Tue, 4 Apr 2023 09:29:09 +0000 (14:59 +0530)]
fabrics: fix fc config JSON file handling
Unlike other nvme transports, nvme/fc connection requires a valid
host_traddr in addition to traddr and transport type. Current fc
config JSON handling is broken due to the host_traddr not getting
updated even if explicitly listed in the JSON file, as shown below:
nvme connect-all -J /usr/local/etc/nvme/config.json
Failed to write to /dev/nvme-fabrics: Invalid argument
And the below error is logged in the messages file for the same:
nvme_fabrics: missing parameter 'host_traddr=%s'
Fix this by ensuring the relevant host_traddr string is appropriately
passed to the respective nvme controller structure. And while we are
at it, ensure the host_iface string is updated too but noting that it
is only applicable to tcp alone, and not rdma or fc.
Signed-off-by: Martin George <marting@netapp.com>
Daniel Wagner [Wed, 5 Apr 2023 06:27:53 +0000 (08:27 +0200)]
build: Fetch all references before using git describe
The release script is using git describe to get the references string of
the library. The returned string validated if it is a valid release
string, e.g. v1.4. If not we abort the operation.
Thus we need to make sure that we have all references including the
tags, thus do a git fetch --all first.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Mon, 3 Apr 2023 14:51:21 +0000 (16:51 +0200)]
build: Deploy AppImage only for push on master
Signed-off-by: Daniel Wagner <dwagner@suse.de>
dependabot[bot] [Mon, 3 Apr 2023 14:41:53 +0000 (14:41 +0000)]
build(deps): bump sand4rt/ftp-deployer from 1.4 to 1.7
Bumps [sand4rt/ftp-deployer](https://github.com/sand4rt/ftp-deployer) from 1.4 to 1.7.
- [Release notes](https://github.com/sand4rt/ftp-deployer/releases)
- [Commits](https://github.com/sand4rt/ftp-deployer/compare/v1.4...v1.7)
---
updated-dependencies:
- dependency-name: sand4rt/ftp-deployer
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Daniel Wagner [Mon, 3 Apr 2023 14:08:41 +0000 (16:08 +0200)]
build: Use sftp transport for AppImage deploy step
Also split deploy strep from build step.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Mon, 3 Apr 2023 12:27:36 +0000 (14:27 +0200)]
build: Add external AppImage upload workflow
After building the AppImage upload it to an external server.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Fri, 31 Mar 2023 14:17:49 +0000 (16:17 +0200)]
doc: Regenerate all docs for v2.4
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Fri, 31 Mar 2023 14:17:26 +0000 (16:17 +0200)]
build: Update version to v2.4
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Fri, 31 Mar 2023 14:11:44 +0000 (16:11 +0200)]
build: Bump libnvme to v1.4
Signed-off-by: Daniel Wagner <dwagner@suse.de>
kdedow [Thu, 30 Mar 2023 00:08:05 +0000 (17:08 -0700)]
plugins/ocp: Add SMART cloud log to solidigm plugin
Minwoo Im [Sun, 26 Mar 2023 11:06:49 +0000 (20:06 +0900)]
nvme-print: Unify number base format for nsid
`nvme list` is one of the most frequently used subcommand to list up
nvme devices in the system. `nvme list -v` prints much more detail in
it. But, those two commands have different number base format which are
decimal and hexadecimal without any prefix (e.g., 0x) or something.
nvme list -v shows hexadecimal nsid without `0x` which means it might be
confused between decimal and hexadecimal. To unify this, this patch
expands device NSID fields width from 8 to 10 to cover `0x` two chracters
as a prefix for both `nvme list` and `nvme list -v`.
Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
Hannes Reinecke [Thu, 23 Mar 2023 15:14:53 +0000 (16:14 +0100)]
nvme-(discover,connect,connect-all): enable options '--keyring' and '--tls_key'
Enable the options '--keyring' and '--tls_key' to select the key
for TLS encrypted connections.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Thu, 23 Mar 2023 15:14:53 +0000 (16:14 +0100)]
nvme-connect: enable option '--tls'
Enable the option '--tls' to activate TLS encrypted connections.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Wed, 22 Mar 2023 14:58:27 +0000 (15:58 +0100)]
nvme-check-tls-key: add options to derive a 'retained' TLS key
Add options to derive a 'retained' TLS key and store it into the given keyring.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Wed, 22 Mar 2023 14:58:27 +0000 (15:58 +0100)]
nvme-gen-tls-key: add options to derive a TLS key
Add options to derive a TLS key and store it into the given keyring.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Daniel Wagner [Mon, 27 Mar 2023 13:30:14 +0000 (15:30 +0200)]
build: Update libnvme wrap
The Python command line option type has changed, thus we need to update
the CI build accordingly.
While at it also add a name to the build and test step.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
kdedow [Wed, 22 Mar 2023 00:27:24 +0000 (17:27 -0700)]
plugins/ocp: Move SMART cloud log methods to separate file for reusability
Laiwenhu [Thu, 23 Mar 2023 08:30:55 +0000 (16:30 +0800)]
nvme: validate storage tag size correctly
The minimum and maximum value for the tag size are not correct
for the 64b case. Update them according the specification.
See also 'Figure 101: Extended LBA Format Data Structure, NVM Command
Set Specific' in NVM Command Set Specification.
[dwagner: updated commit message]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Tokunori Ikegami [Sat, 25 Mar 2023 02:36:10 +0000 (11:36 +0900)]
nvme-print-json: Add json output status function
For the json output add json argconfig option also.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Fri, 24 Mar 2023 17:37:59 +0000 (02:37 +0900)]
util: Cleanup argconfig parse function
1. Split to parse config type function
2. Change if else statement to switch case statement
3. Use calloc instead of malloc
4. Delete unused while 0 statement
5. Add argconfig error common function
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Wed, 22 Mar 2023 15:35:00 +0000 (00:35 +0900)]
nvme: Fix format command function indentation errors
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Wed, 22 Mar 2023 15:29:30 +0000 (00:29 +0900)]
util: Use argconfig commandline options pointer directly
Also change print help function options argument as not const variable.
Fix ";;" also incorrectly used to ";".
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Thu, 23 Mar 2023 16:59:41 +0000 (01:59 +0900)]
nvme-print: Fix nvme show status function indentation errors
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Thu, 23 Mar 2023 11:22:08 +0000 (20:22 +0900)]
nvme: Check fw-commit command support MUD
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Minwoo Im [Wed, 8 Mar 2023 23:52:54 +0000 (08:52 +0900)]
print: print csi and opcode in error log (TP4113)
Print newly added fields in the error information log page to show which
command is errored by opcode. This commit is based on TP4113.
Signed-off-by: Minwoo Im <minwoo.im@samsung.com>
Minwoo Im [Wed, 22 Mar 2023 21:52:34 +0000 (06:52 +0900)]
build: Bump up libnvme wrap
To fetch newly added the opcode filed in error log in nvme/types.h.
Signed-off-by: Minwoo Im <minwoo.im@samsung.com>
Daniel Wagner [Wed, 22 Mar 2023 16:17:42 +0000 (17:17 +0100)]
plugins/inspur: Cast vendor specific smart log value
nvme_get_log_simple expects an 'enum nvme_cmd_get_log_lid' type. Cast
the vendor specific value as clang reports this as warning.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Wed, 22 Mar 2023 16:14:12 +0000 (17:14 +0100)]
nvme: Use correct ABORT type for self abort test
The enum type is not matching, use the correct one.
Signed-off-by: Daniel Wagner <dwagner@suse.de>