]> www.infradead.org Git - users/sagi/nvme-cli.git/log
users/sagi/nvme-cli.git
2 years agoplugins/wdc: remove fd argument from print functions
Jeremy Kerr [Tue, 12 Jul 2022 07:57:35 +0000 (15:57 +0800)]
plugins/wdc: remove fd argument from print functions

These don't need the NVMe device file descriptor, they're just printing
pre-collected data.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
2 years agoplugins/wdc: fix memset() on the address of a pointer
Jeremy Kerr [Tue, 12 Jul 2022 08:16:12 +0000 (16:16 +0800)]
plugins/wdc: fix memset() on the address of a pointer

vuLogInput is a pointer, we're currently memset()-ing it like it's an
aggregate type.

We've already initialised the pointer to NULL above, so this memset
isn't doing anything.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
2 years agoplugins/solidigm: fix return value on format parse failure
Jeremy Kerr [Tue, 12 Jul 2022 06:45:29 +0000 (14:45 +0800)]
plugins/solidigm: fix return value on format parse failure

If validate_output_format() fails, there are a couple of paths in the
solidgm code that will return a (closed) file descriptor, rather than an
error status. This looks to be a couple of copy-and-paste errors.

This change fixes the return value for these failure path, ensuring that
we'll actually have an error return.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
2 years agoplugins/wdc: prevent duplicate close on NVMe device
Jeremy Kerr [Tue, 12 Jul 2022 05:28:17 +0000 (13:28 +0800)]
plugins/wdc: prevent duplicate close on NVMe device

wdc_crash_dump() will close the NVMe device file descriptor, but so do
all of its callers.

This change removes the unnecessary close(), as well as a stray
backslash on the previous line (which may cause unexpected indentation
warnings).

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
2 years agobuild: Update version to v2.1.1 v2.1.1
Daniel Wagner [Mon, 1 Aug 2022 15:39:47 +0000 (17:39 +0200)]
build: Update version to v2.1.1

Signed-off-by: Daniel Wagner <dwagner@suse.de>
2 years agobuild: Extend release script to support micro version releases
Daniel Wagner [Mon, 1 Aug 2022 15:14:49 +0000 (17:14 +0200)]
build: Extend release script to support micro version releases

In case we need to fix up a a maj.min release extend the release
script to accept x.y.z version strings.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
2 years agoMerge pull request #1629 from igaw/fix-release-fallouts
Daniel Wagner [Mon, 1 Aug 2022 15:01:24 +0000 (17:01 +0200)]
Merge pull request #1629 from igaw/fix-release-fallouts

Fix release fallouts

2 years agobuild: Add minimum build requirement on libnvme
Daniel Wagner [Mon, 1 Aug 2022 14:52:25 +0000 (16:52 +0200)]
build: Add minimum build requirement on libnvme

We depend on added APIs in libnvme, hence we need to update our build
requirment accordingly. Note, the ABI of the library is stable.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
2 years agowrapper: Add weak nvme_init_copy_range_f1 symbol
Daniel Wagner [Mon, 1 Aug 2022 14:50:32 +0000 (16:50 +0200)]
wrapper: Add weak nvme_init_copy_range_f1 symbol

Avoid adding a hard dependency on LIBNVME_1_1 section.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
2 years agoMerge pull request #1614 from igaw/sync-release-steps
Daniel Wagner [Mon, 1 Aug 2022 12:54:10 +0000 (14:54 +0200)]
Merge pull request #1614 from igaw/sync-release-steps

Sync release steps with libnvme

2 years agoRegenerate all documentation v2.1
Daniel Wagner [Mon, 1 Aug 2022 12:49:11 +0000 (14:49 +0200)]
Regenerate all documentation

Regenerate documentation for v2.1 release

Signed-off-by: Daniel Wagner <dwagner@suse.de>
2 years agobuild: Update libnvme wrap
Daniel Wagner [Mon, 1 Aug 2022 12:47:37 +0000 (14:47 +0200)]
build: Update libnvme wrap

Update to v1.1 of libnvme.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
2 years agoMerge pull request #1627 from igaw/fix-double-error-log
Daniel Wagner [Mon, 1 Aug 2022 12:33:03 +0000 (14:33 +0200)]
Merge pull request #1627 from igaw/fix-double-error-log

nvme: Do not print error message in collect_effects_log helper

2 years agonvme: Do not print error message in collect_effects_log helper
Daniel Wagner [Mon, 1 Aug 2022 12:22:17 +0000 (14:22 +0200)]
nvme: Do not print error message in collect_effects_log helper

We print error and status on the top level, so no need to print it a
helper.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
2 years agoMerge pull request #1626 from igaw/drop-auth-ctrl-key
Daniel Wagner [Mon, 1 Aug 2022 12:15:43 +0000 (14:15 +0200)]
Merge pull request #1626 from igaw/drop-auth-ctrl-key

fabrics: Remove dhchap-ctrl-secret from discover/connect-all

2 years agofabrics: Remove dhchap-ctrl-secret from discover/connect-all
Daniel Wagner [Mon, 1 Aug 2022 11:52:31 +0000 (13:52 +0200)]
fabrics: Remove dhchap-ctrl-secret from discover/connect-all

The dhchap-ctrl-secret is per controller but discover and connect-all
operate on several controllers.

As this get's very fast complicated how to express this on the command
line, just drop the it. It was not implemented anyway and not listed
in the documentation.

Use the JSON config file in this case.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
2 years agoMerge pull request #1624 from martin-gpy/async_event_config
Daniel Wagner [Mon, 1 Aug 2022 12:12:11 +0000 (14:12 +0200)]
Merge pull request #1624 from martin-gpy/async_event_config

nvme-print: sanitize the get-feature async event config output

2 years agonvme-print: sanitize the get-feature async event config output
Martin George [Fri, 29 Jul 2022 11:51:02 +0000 (17:21 +0530)]
nvme-print: sanitize the get-feature async event config output

Trivial fix to sanitize the nvme get-feature async event config
output by ensuring the details printed are properly aligned.

Signed-off-by: Martin George <marting@netapp.com>
2 years agoMerge pull request #1621 from igaw/fix-rae-users
Daniel Wagner [Mon, 25 Jul 2022 16:57:00 +0000 (18:57 +0200)]
Merge pull request #1621 from igaw/fix-rae-users

nvme: Set default rae value for nvme_get_nsid_log users

2 years agoMerge pull request #1619 from jeffreyalien/id-uuid-fix
Daniel Wagner [Fri, 22 Jul 2022 14:46:26 +0000 (16:46 +0200)]
Merge pull request #1619 from jeffreyalien/id-uuid-fix

print: Fix nvme_id_uuid_list

3 years agonvme: Set default rae value for nvme_get_nsid_log users
Daniel Wagner [Fri, 22 Jul 2022 12:12:00 +0000 (14:12 +0200)]
nvme: Set default rae value for nvme_get_nsid_log users

libnvme 1.0 hard codes the rae value for all nvme_get_nsid_log to
false. The upcoming 1.1 release will pass the rae value through
to the kernel. This is causing a behavior change. To be on the safe
side set all rae=true to false.

At least for nvme_get_log_error and nvme_get_log_smart this seems also
what the spec recommends.

Reported-by: Jeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
3 years agoMerge pull request #1617 from igaw/disconnect-wo-scan
Daniel Wagner [Fri, 22 Jul 2022 12:06:16 +0000 (14:06 +0200)]
Merge pull request #1617 from igaw/disconnect-wo-scan

fabrics: Avoid nvme_scan_ctrl when disconnecting

3 years agoMerge pull request #1620 from Francis-Pravin/remove-duplicate-line
Daniel Wagner [Fri, 22 Jul 2022 11:25:21 +0000 (13:25 +0200)]
Merge pull request #1620 from Francis-Pravin/remove-duplicate-line

nvme: Remove duplicate line

3 years agonvme: Remove duplicate line
Francis Pravin Antony Michael Raj [Thu, 21 Jul 2022 14:20:57 +0000 (10:20 -0400)]
nvme: Remove duplicate line

Remove the duplicate prinfow assignment

Signed-off-by: Francis Pravin Antony Michael Raj <francis.michael@solidigm.com>
Signed-off-by: Jonathan Derrick <jonathan.derrick@solidigm.com>
3 years agofabrics: Avoid nvme_scan_ctrl when disconnecting
Daniel Wagner [Tue, 19 Jul 2022 09:53:12 +0000 (11:53 +0200)]
fabrics: Avoid nvme_scan_ctrl when disconnecting

In certain corner cases, the kernel will not populate a nvme subsystem
but only create a nvme controller. nvme_scan_ctrl will fail in such
scenarios to find the controller object. Let's do the lookup based on
the ctrl name only.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
3 years agobuild: Update version before regenerating docs
Daniel Wagner [Mon, 18 Jul 2022 14:37:29 +0000 (16:37 +0200)]
build: Update version before regenerating docs

The docs contain the version string. Let's set new version before
regenerating the documentation to keep it consistent.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
3 years agobuild: Update release version rules
Daniel Wagner [Mon, 18 Jul 2022 14:08:38 +0000 (16:08 +0200)]
build: Update release version rules

Include the release candidate version string into the project
version. This allows to upload every release candidate to PyPI instead
just the final release.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
3 years agoRelease v2.1-rc0 v2.1-rc0
Daniel Wagner [Thu, 14 Jul 2022 13:11:20 +0000 (15:11 +0200)]
Release v2.1-rc0

Signed-off-by: Daniel Wagner <dwagner@suse.de>
3 years agoRegenerate all documentation
Daniel Wagner [Thu, 14 Jul 2022 13:11:20 +0000 (15:11 +0200)]
Regenerate all documentation

Regenerate documentation for v2.1-rc0 release

Signed-off-by: Daniel Wagner <dwagner@suse.de>
3 years agobuild: Update libnvme wrap
Daniel Wagner [Thu, 14 Jul 2022 13:07:00 +0000 (15:07 +0200)]
build: Update libnvme wrap

Update to v1.1-rc0 of libnvme.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
3 years agoMerge pull request #1610 from jeffreyalien/master
Daniel Wagner [Wed, 13 Jul 2022 13:10:33 +0000 (15:10 +0200)]
Merge pull request #1610 from jeffreyalien/master

[wdc] Fix capabilities settings for SN650 and SN655

3 years agowdc: Fix capabilities settings for SN650 and SN655
Jeff Lien [Tue, 12 Jul 2022 18:27:06 +0000 (13:27 -0500)]
wdc: Fix capabilities settings for SN650 and SN655

Signed-off-by: Jeff Lien <jeff.lien@wdc.com>
3 years agoMerge pull request #1606 from Ssd5513146/master
Daniel Wagner [Tue, 12 Jul 2022 11:07:22 +0000 (13:07 +0200)]
Merge pull request #1606 from Ssd5513146/master

ymtc: fix ymtc additional smart info display

3 years agoymtc: fix ymtc additional smart info display
yunli [Tue, 12 Jul 2022 07:04:10 +0000 (15:04 +0800)]
ymtc: fix ymtc additional smart info display

3 years agoMerge pull request #1603 from igaw/fix-return-code-from-effects-log
Daniel Wagner [Tue, 12 Jul 2022 09:37:25 +0000 (11:37 +0200)]
Merge pull request #1603 from igaw/fix-return-code-from-effects-log

nvme: Return status/error code for effects-log command

3 years agoMerge pull request #1605 from martin-gpy/get_feature_H_option
Daniel Wagner [Tue, 12 Jul 2022 09:34:11 +0000 (11:34 +0200)]
Merge pull request #1605 from martin-gpy/get_feature_H_option

nvme: fix nvme get-feature with -H option

3 years agoMerge pull request #1604 from CodeConstruct/wdc-close-fix
Daniel Wagner [Tue, 12 Jul 2022 09:26:54 +0000 (11:26 +0200)]
Merge pull request #1604 from CodeConstruct/wdc-close-fix

plugins/wdc: telemetry log fixes

3 years agoMerge pull request #1607 from igaw/add-release-script
Daniel Wagner [Tue, 12 Jul 2022 09:23:29 +0000 (11:23 +0200)]
Merge pull request #1607 from igaw/add-release-script

Add release script

3 years agobuild: Add release automation script
Daniel Wagner [Tue, 12 Jul 2022 08:51:36 +0000 (10:51 +0200)]
build: Add release automation script

Add a script for generating a release.

Note, meson's project version is updated only once, either at the
begin of a RC phase or directly when there was no RC.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
3 years agobuild: Add workflow to create release from tags
Daniel Wagner [Tue, 12 Jul 2022 08:48:17 +0000 (10:48 +0200)]
build: Add workflow to create release from tags

Let's automate the release process. The trigger to build a release is
the release tag.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
3 years agonvme: fix nvme get-feature with -H option
Martin George [Tue, 12 Jul 2022 08:31:08 +0000 (14:01 +0530)]
nvme: fix nvme get-feature with -H option

Currently, nvme get-feature with the -H option fails to print detailed
info for specific feature ids such as number of IO queues (fid=0x07),
async event config (fid=0x0b), KATO value (fid=0x0f), etc. This is
because nvme_feature_show_fields() is invoked only if the corresponding
'buf' pointer is valid, which is not necessary for the above feature
ids. So fix this by removing this restriction while invoking
nvme_feature_show_fields(). At the same time, ensure this 'buf' pointer
is appropriately validated before use in this function.

Fixes: bcab212 ("nvme: coverity fixes")
Signed-off-by: Martin George <marting@netapp.com>
3 years agoplugins/wdc: don't write invalid log data
Jeremy Kerr [Tue, 12 Jul 2022 07:30:43 +0000 (15:30 +0800)]
plugins/wdc: don't write invalid log data

In wdc_do_cap_telemetry_log, we currently continue to write log data if
any of the telemetry queries return with < 0.

This change aborts the output write on these errors instead.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
3 years agoplugins/wdc: prevent double close in wdc_do_cap_telemetry_log
Jeremy Kerr [Tue, 12 Jul 2022 07:27:55 +0000 (15:27 +0800)]
plugins/wdc: prevent double close in wdc_do_cap_telemetry_log

Currently, wdc_do_cap_telemetry_log will close the NVMe fd before
returning, but so it all of its call sites. Since we'd be better off
making the fd open/close symmetrical, drop the close from
wdc_do_cap_telemetry_log.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
3 years agonvme: Return status/error code for effects-log command
Daniel Wagner [Mon, 11 Jul 2022 11:39:39 +0000 (13:39 +0200)]
nvme: Return status/error code for effects-log command

collect_effects_log eats up the return code from
nvme_get_log_cmd_effects. Forward it to the shell..

Fixes: 155fbebfe7b7 ("Update effects-log to handle multiple command sets")
Signed-off-by: Daniel Wagner <dwagner@suse.de>
3 years agoMerge pull request #1599 from ikegami-t/timestamp
Daniel Wagner [Mon, 11 Jul 2022 10:02:37 +0000 (12:02 +0200)]
Merge pull request #1599 from ikegami-t/timestamp

nvme: Check timestamp format result and increase string size

3 years agoMerge pull request #1600 from igaw/replace-util-json
Daniel Wagner [Mon, 11 Jul 2022 09:41:48 +0000 (11:41 +0200)]
Merge pull request #1600 from igaw/replace-util-json

    nvme: Use correct json serializing for long doubles

3 years agonvme: Use correct json serializing for long doubles
Daniel Wagner [Fri, 8 Jul 2022 10:18:03 +0000 (12:18 +0200)]
nvme: Use correct json serializing for long doubles

Fixup all places which use json_object_add_value_float() to serialize
long double types with json_object_add_value_double(). The float
version cuts off the upper 64 bits of the 128 bit long double type.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
3 years agojson: Add helper to serialize long double types
Daniel Wagner [Fri, 8 Jul 2022 10:15:50 +0000 (12:15 +0200)]
json: Add helper to serialize long double types

Introduce a helper to create a struct json_object from a long double
type.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
3 years agojson: Remove own json implementation
Daniel Wagner [Fri, 8 Jul 2022 09:59:51 +0000 (11:59 +0200)]
json: Remove own json implementation

We have a hard dependency on json-c, so let's remove our own json
implementation.

While at it move the json-c wrappers to util dir.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
3 years agobuild: Cleanup json-c dependency
Daniel Wagner [Mon, 11 Jul 2022 09:32:27 +0000 (11:32 +0200)]
build: Cleanup json-c dependency

nvme-cli has hard dependency on json-c. Cleanup the leftovers from the
time where json-c was optional.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
3 years agobuild: Explicitly add required on hard dependency
Daniel Wagner [Mon, 11 Jul 2022 09:29:28 +0000 (11:29 +0200)]
build: Explicitly add required on hard dependency

Make it explicit which library nvme-cli is depending on.

While at it also resort the section so that we list all
required dependencies.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
3 years agodocs: Correct spelling check error
Tokunori Ikegami [Sat, 9 Jul 2022 03:43:57 +0000 (12:43 +0900)]
docs: Correct spelling check error

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
3 years agonvme-print: Correct spelling check error
Tokunori Ikegami [Fri, 8 Jul 2022 19:49:27 +0000 (04:49 +0900)]
nvme-print: Correct spelling check error

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
3 years agonvme: Correct spelling check error
Tokunori Ikegami [Fri, 8 Jul 2022 18:40:31 +0000 (03:40 +0900)]
nvme: Correct spelling check error

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
3 years agonvme: Output timestamp value as thousands grouping characters
Tokunori Ikegami [Fri, 8 Jul 2022 13:36:30 +0000 (22:36 +0900)]
nvme: Output timestamp value as thousands grouping characters

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
3 years agonvme: Make default timestamp format buffer size and test strftime retrun code
Tokunori Ikegami [Fri, 8 Jul 2022 12:36:26 +0000 (21:36 +0900)]
nvme: Make default timestamp format buffer size and test strftime retrun code

Since the current buffer size is exceeded for ja_JP.UTF-8 locale time.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
3 years agoMerge pull request #1594 from ikegami-t/docs
Daniel Wagner [Fri, 8 Jul 2022 08:09:58 +0000 (10:09 +0200)]
Merge pull request #1594 from ikegami-t/docs

docs: Add nvme command RETURNS section for #1560 requirement

3 years agodocs: Add nvme command RETURNS section for #1560 requirement
Tokunori Ikegami [Thu, 7 Jul 2022 14:30:54 +0000 (23:30 +0900)]
docs: Add nvme command RETURNS section for #1560 requirement

Required information on how an invoking process might determine success or
failure.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
3 years agoMerge pull request #1597 from ikegami-t/io
Daniel Wagner [Thu, 7 Jul 2022 09:35:44 +0000 (11:35 +0200)]
Merge pull request #1597 from ikegami-t/io

nvme: Fix submit_io to use nvme_io for #1565

3 years agonvme: Use opcode directly in submit_io
Tokunori Ikegami [Wed, 6 Jul 2022 17:34:30 +0000 (02:34 +0900)]
nvme: Use opcode directly in submit_io

submit_io is an internal functions and all callers pass the correct
opcode in. Thus no need to reparse and select the right wrapper
function (nvme_read, nvme_write, ...). Instead just pass the opcode to
the generic nvme_io function.

Note, the compare was fixed in 9b6d3fca4289 ("submit_io(): fix "nvme
compare" to pass correct command") but missed the opportunity to
cleanup this part.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
[dwagner: reworded commit message]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
3 years agoMerge pull request #1596 from igaw/remove-auto-review
Daniel Wagner [Wed, 6 Jul 2022 11:13:59 +0000 (13:13 +0200)]
Merge pull request #1596 from igaw/remove-auto-review

build: Remove auto review bot

3 years agobuild: Remove auto review bot
Daniel Wagner [Wed, 6 Jul 2022 11:04:38 +0000 (13:04 +0200)]
build: Remove auto review bot

Unfortunately, I was not able to figure out how to set the correct
permissions for necojackarc/auto-request-review to run.

The runner logs:

  Error: HttpError: Resource not accessible by integration

The documentation says that a PAT would work, but I really don't feel
comfortable to create such a powerful token.

So let's drop it and make the review assignment per manual
for the time being.

Links: https://github.com/necojackarc/auto-request-review#optional-github-personal-access-token

Signed-off-by: Daniel Wagner <dwagner@suse.de>
3 years agoMerge pull request #1591 from igaw/update-json-c
Daniel Wagner [Mon, 4 Jul 2022 11:35:28 +0000 (13:35 +0200)]
Merge pull request #1591 from igaw/update-json-c

build: Update json-c.wrap

3 years agoMerge pull request #1592 from igaw/auto-review-bot-perm
Daniel Wagner [Mon, 4 Jul 2022 11:35:05 +0000 (13:35 +0200)]
Merge pull request #1592 from igaw/auto-review-bot-perm

build: Give auto review bot write permission on pull request

3 years agobuild: Give auto review bot write permission on pull request
Daniel Wagner [Mon, 4 Jul 2022 11:02:04 +0000 (13:02 +0200)]
build: Give auto review bot write permission on pull request

Currently setting the reviewer from the bot fails with:
  Error: HttpError: Resource not accessible by integration

The GITHUB_TOKEN needs enough permission to update the PR.

Links: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
Signed-off-by: Daniel Wagner <dwagner@suse.de>
3 years agobuild: Update json-c.wrap
Daniel Wagner [Mon, 4 Jul 2022 10:43:54 +0000 (12:43 +0200)]
build: Update json-c.wrap

Update to the latest the json-c wrap version.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
3 years agoudev: re-read the discovery log page when a discovery controller reconnected
Sagi Grimberg [Mon, 27 Jun 2022 08:06:50 +0000 (11:06 +0300)]
udev: re-read the discovery log page when a discovery controller reconnected

When using persistent discovery controllers, if the discovery
controller loses connectivity and manage to reconnect after a while,
we need to retrieve again the discovery log page in order to learn
about possible changes that may have occurred during this time as
discovery log change events were lost.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Link: https://lore.kernel.org/r/20220627080650.108936-1-sagi@grimberg.me
3 years agoMerge pull request #1590 from sc108-lee/rpm
Daniel Wagner [Fri, 1 Jul 2022 06:34:02 +0000 (08:34 +0200)]
Merge pull request #1590 from sc108-lee/rpm

rpmbuild: Do docs build to avoid error from missing .1, .html files

3 years agorpmbuild: Do docs build to avoid error from missing .1, .html files
Steven Seungcheol Lee [Fri, 1 Jul 2022 06:21:34 +0000 (15:21 +0900)]
rpmbuild: Do docs build to avoid error from missing .1, .html files

Program asciidoc found: YES (/usr/bin/asciidoc)
Documentation/meson.build:253:8: ERROR: File nvme-wdc-cloud-boot-SSD-version.1 does not exist.

Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
3 years agoMerge pull request #1588 from lgdacunha/average_latency_tracking
Daniel Wagner [Thu, 30 Jun 2022 11:42:04 +0000 (13:42 +0200)]
Merge pull request #1588 from lgdacunha/average_latency_tracking

Added average latency field to solidigm latency-tracking-log.

3 years agosolidigm: Add average latency field
da Cunha, Leonardo [Tue, 28 Jun 2022 19:40:28 +0000 (15:40 -0400)]
solidigm: Add average latency field

Add average latency field to solidigm latency-tracking-log.

While at it also remove the -b flag option from solidigm plug-in, in
favor of "-o binary".

3 years agoci: Add missing per_author reviewer entry
Daniel Wagner [Thu, 30 Jun 2022 06:05:26 +0000 (08:05 +0200)]
ci: Add missing per_author reviewer entry

"per_author" is not set; returning no reviewers for the author.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
3 years agoMerge pull request #1583 from lgdacunha/Solidigm_Latency_Tracking
Daniel Wagner [Mon, 27 Jun 2022 07:02:29 +0000 (09:02 +0200)]
Merge pull request #1583 from lgdacunha/Solidigm_Latency_Tracking

Added support to Solidigm Latency Tracking.

3 years agoAdded support to Solidigm Latency Tracking.
da Cunha, Leonardo [Fri, 3 Jun 2022 22:49:09 +0000 (18:49 -0400)]
Added support to Solidigm Latency Tracking.

[dwagner: whitespace fixes]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
3 years agoMerge pull request #1585 from igaw/add-autor-review
Daniel Wagner [Mon, 27 Jun 2022 06:27:10 +0000 (08:27 +0200)]
Merge pull request #1585 from igaw/add-autor-review

ci: Add auto review bot

3 years agoMerge pull request #1584 from glimchb/dell
Daniel Wagner [Fri, 24 Jun 2022 11:13:34 +0000 (13:13 +0200)]
Merge pull request #1584 from glimchb/dell

plugins: Add Dell plugin with basic id-ctrl

3 years agoMerge pull request #1578 from zwhfly/master
Daniel Wagner [Fri, 24 Jun 2022 09:47:55 +0000 (11:47 +0200)]
Merge pull request #1578 from zwhfly/master

docs: Document nvme-id-ns behavior when nsid is 0xFFFFFFFF

3 years agodocs: Document nvme-id-ns behavior when nsid is 0xFFFFFFFF
zwhfly [Tue, 21 Jun 2022 05:10:07 +0000 (13:10 +0800)]
docs: Document nvme-id-ns behavior when nsid is 0xFFFFFFFF

as documented in NVM Command Set Specification Revision 1.0b,
chapter 4.1.5.1 - NVM Command Set Identify Namespace Data Structure (CNS 00h).

3 years agoci: Add auto review bot
Daniel Wagner [Fri, 24 Jun 2022 07:05:18 +0000 (09:05 +0200)]
ci: Add auto review bot

Arthur has asked to be added as reviewer to the OCP plugin changes.
Let's setup an auto review bot. We might also want to hook up this for
the other plugins in the future.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
3 years agoplugins: Add Dell plugin with basic id-ctrl
Boris Glimcher [Thu, 23 Jun 2022 22:38:46 +0000 (01:38 +0300)]
plugins: Add Dell plugin with basic id-ctrl

Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
3 years agoMerge pull request #1581 from AndyHouHit/master
Daniel Wagner [Wed, 22 Jun 2022 11:15:29 +0000 (13:15 +0200)]
Merge pull request #1581 from AndyHouHit/master

create-ns: fix create-ns fail when -b 4096 while id-ns return nlbaf=1…

3 years agocreate-ns: fix create-ns fail when -b 4096 while id-ns return nlbaf=1 and 0 for 512...
Wei Hou [Wed, 22 Jun 2022 09:41:08 +0000 (17:41 +0800)]
create-ns: fix create-ns fail when -b 4096 while id-ns return nlbaf=1 and 0 for 512, 1 for 4096

Fail case:
    sudo nvme create-ns /dev/nvme0 --nsze=1875366486   --ncap=937684566  --block-size=4096  --timeout=120000
        FLBAS corresponding to block size 4096 not found
        Please correct block size, or specify FLBAS directly

Signed-off-by: Wei Hou <wei.hou@scaleflux.com>
3 years agoMerge pull request #1579 from igaw/add-innogrid-plugin
Daniel Wagner [Tue, 21 Jun 2022 09:30:04 +0000 (11:30 +0200)]
Merge pull request #1579 from igaw/add-innogrid-plugin

plugins: Add innogrit plugin

3 years agoplugins: Add innogrit plugin
innogritkenny [Tue, 21 Jun 2022 01:57:29 +0000 (09:57 +0800)]
plugins: Add innogrit plugin

Add support for the innogrit plugin. It supports following commands:

   smart-log-add
   get-eventlog
   get-cdump

Code provided by innogritkenny
[dwagner: Whitespace fixes and small code refactorings.
          Added a commit message]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
3 years agoMerge pull request #1575 from Karlson2k/completion_fixes_02
Daniel Wagner [Fri, 17 Jun 2022 16:40:54 +0000 (18:40 +0200)]
Merge pull request #1575 from Karlson2k/completion_fixes_02

bash-nvme-completion.sh: a better fix for "readonly" with bash 5.x

3 years agobash-nvme-completion.sh: a better fix for "readonly" with bash 5.x
Evgeny Grin [Fri, 17 Jun 2022 12:00:39 +0000 (15:00 +0300)]
bash-nvme-completion.sh: a better fix for "readonly" with bash 5.x

The error with one-line "readonly" with assignment on bash 5.x was fixed
by 25fd8c707b106ca0763402566ad657ef710bf09e. This commit restores "readonly"
functionality and adds some uniformity.

3 years agoMerge pull request #1574 from Karlson2k/completion_fixes_01
Daniel Wagner [Fri, 17 Jun 2022 12:25:35 +0000 (14:25 +0200)]
Merge pull request #1574 from Karlson2k/completion_fixes_01

Bash Completion fixes

3 years agobash-nvme-completion.sh: fixed typo with seagate plugin
Evgeny Grin [Fri, 17 Jun 2022 12:08:02 +0000 (15:08 +0300)]
bash-nvme-completion.sh: fixed typo with seagate plugin

Obvious typo resulted in broken completion for seagete plugin

3 years agobash-nvme-completion.sh: fixed error when sourced twice
Evgeny Grin [Fri, 17 Jun 2022 12:00:39 +0000 (15:00 +0300)]
bash-nvme-completion.sh: fixed error when sourced twice

One-line "readonly" with assignment produce error if completion file
is sourced for the second time (/etc/profile reload, su etc.)

3 years agoMerge pull request #1572 from jeffreyalien/stc-control-bit-fix
Daniel Wagner [Fri, 17 Jun 2022 11:08:04 +0000 (13:08 +0200)]
Merge pull request #1572 from jeffreyalien/stc-control-bit-fix

Fix to set correct bit  for Storage Tag Check in the IO Control Flags

3 years agoMerge pull request #1573 from igaw/tests-port-nose2
Daniel Wagner [Fri, 17 Jun 2022 11:02:54 +0000 (13:02 +0200)]
Merge pull request #1573 from igaw/tests-port-nose2

tests: Port to nose2 and unittest

3 years agotests: Port to nose2 and unittest
Daniel Wagner [Fri, 17 Jun 2022 08:31:42 +0000 (10:31 +0200)]
tests: Port to nose2 and unittest

The test are still using nose which has been superseeded by
nose2. Update the tests to use the nose2 and unittest.

To minimize errors in most of the porting is done using sed, e.g
's/TestNVMeIO.__init__(self)/super().setUp()/g'.

While at it also update the build system and move the test files to
the build dir. This avoids in tree exectution of the Python files
which leaves the __pycache__ dir in the source tree.

This also fixes the problem, that the config file is not found when
'meson test -C .build' is used. We have the prober dir structure for
Python and nose2 to find all resources in the build root. Furthermore,
when running the tests the output is captured in the nvmetests
dir. This dir is also created under the build root dir.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
3 years agoprint: Fix nvme_id_uuid_list
Jeff Lien [Thu, 16 Jun 2022 16:44:00 +0000 (11:44 -0500)]
print: Fix nvme_id_uuid_list

Signed-off-by: Jeff Lien <jeff.lien@wdc.com>
3 years agonvme: Fix Storage Tag Check IO Control Flag
Jeff Lien [Tue, 7 Jun 2022 20:11:29 +0000 (15:11 -0500)]
nvme: Fix Storage Tag Check IO Control Flag

Signed-off-by: Jeff Lien <jeff.lien@wdc.com>
3 years agobuild: Update libnvme.wrap revision
Jeff Lien [Tue, 14 Jun 2022 15:05:15 +0000 (10:05 -0500)]
build: Update libnvme.wrap revision

Signed-off-by: Jeff Lien <jeff.lien@wdc.com>
3 years agoMerge pull request #1571 from jeffreyalien/sn560-capabilities
Daniel Wagner [Tue, 14 Jun 2022 15:39:47 +0000 (17:39 +0200)]
Merge pull request #1571 from jeffreyalien/sn560-capabilities

wdc: Increment WDC Plugin Version

3 years agowdc: Increment WDC Plugin Version
Jeff Lien [Tue, 14 Jun 2022 14:28:20 +0000 (09:28 -0500)]
wdc: Increment WDC Plugin Version

Signed-off-by: Jeff Lien <jeff.lien@wdc.com>
3 years agoMerge pull request #1568 from jeffreyalien/sn560-capabilities
Daniel Wagner [Tue, 14 Jun 2022 11:06:18 +0000 (13:06 +0200)]
Merge pull request #1568 from jeffreyalien/sn560-capabilities

wdc: Fix SN560 Device Capabilities

3 years agoMerge pull request #1570 from igaw/sfx-get_lat_stats_log-csd3000
Daniel Wagner [Tue, 14 Jun 2022 11:05:24 +0000 (13:05 +0200)]
Merge pull request #1570 from igaw/sfx-get_lat_stats_log-csd3000

Sfx get lat stats log csd3000

3 years agosfx: remove unsupport ouptut option for query_cap and change_cap cmd
Wei Hou [Tue, 14 Jun 2022 06:14:42 +0000 (14:14 +0800)]
sfx: remove unsupport ouptut option for query_cap and change_cap cmd

Signed-off-by: Wei Hou <wei.hou@scaleflux.com>