]>
www.infradead.org Git - users/sagi/nvme-cli.git/log
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
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>
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
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
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>
Wei Hou [Tue, 14 Jun 2022 06:09:00 +0000 (14:09 +0800)]
sfx: get_lat_stats_log support for csd3000
Signed-off-by: Wei Hou <wei.hou@scaleflux.com>
Daniel Wagner [Tue, 14 Jun 2022 09:50:45 +0000 (11:50 +0200)]
Merge pull request #1567 from linux-nvme/dependabot/github_actions/actions/setup-python-4
build(deps): bump actions/setup-python from 3 to 4
dependabot[bot] [Tue, 14 Jun 2022 09:46:39 +0000 (09:46 +0000)]
build(deps): bump actions/setup-python from 3 to 4
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3 to 4.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v3...v4)
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Daniel Wagner [Tue, 14 Jun 2022 09:45:36 +0000 (11:45 +0200)]
Merge pull request #1569 from igaw/ci-add-python-version
ci: add python version to setup-python environment
Daniel Wagner [Tue, 14 Jun 2022 09:44:59 +0000 (11:44 +0200)]
ci: add python version to setup-python environment
v4 of the setup-python helper wants to know the python version number.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Jeff Lien [Mon, 13 Jun 2022 18:39:33 +0000 (13:39 -0500)]
wdc: Fix SN560 Device Capabilities
Signed-off-by: Jeff Lien <jeff.lien@wdc.com>
Daniel Wagner [Mon, 13 Jun 2022 11:58:20 +0000 (13:58 +0200)]
Merge pull request #1566 from igaw/add-kernel-dep-note
README: add note about min kernel version
Daniel Wagner [Mon, 13 Jun 2022 11:24:43 +0000 (13:24 +0200)]
README: add note about min kernel version
The min kernel version is v4.15 kernel because libnvme depends on the
/sys/class/nvme-subsystem interface.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Mon, 13 Jun 2022 07:13:03 +0000 (09:13 +0200)]
Merge pull request #1564 from jlevon/fix-compare
submit_io(): fix "nvme compare" to pass correct command
John Levon [Thu, 9 Jun 2022 16:32:26 +0000 (16:32 +0000)]
submit_io(): fix "nvme compare" to pass correct command
Since "
18de3a6d Convert to libnvme", an "nvme compare" was being
converted incorrectly into an "nvme write" in submit_io().
Signed-off-by: John Levon <john.levon@nutanix.com>
Daniel Wagner [Mon, 13 Jun 2022 07:03:12 +0000 (09:03 +0200)]
Merge pull request #1561 from ankit-sam/master
libnvme wrap update, update power descriptor fields
Ankit Kumar [Thu, 9 Jun 2022 15:42:06 +0000 (21:12 +0530)]
print: Update power descriptor fields
1. Add missing active power workload field.
2. Use enums for power scale.
3. Fix indentation.
4. Update json entry for active power workload and
fix idle scale.
Signed-off-by: Ankit Kumar <ankit.kumar@samsung.com>
Ankit Kumar [Thu, 9 Jun 2022 15:29:55 +0000 (20:59 +0530)]
build: update libnvme wrap
Fetch power state descriptor enums from libnvme
Signed-off-by: Ankit Kumar <ankit.kumar@samsung.com>
Daniel Wagner [Wed, 8 Jun 2022 10:56:54 +0000 (12:56 +0200)]
Merge pull request #1554 from hanumanthuh/master
Micron plugin version 1.0.14
Hanumanthu H [Sun, 5 Jun 2022 06:01:46 +0000 (11:31 +0530)]
Micron plugin version 1.0.14
Daniel Wagner [Fri, 3 Jun 2022 10:53:22 +0000 (12:53 +0200)]
Merge pull request #1550 from igaw/log-connect-errors
Log connect errors
Daniel Wagner [Thu, 2 Jun 2022 13:26:11 +0000 (15:26 +0200)]
fabrics: Already connected uses a different error code
The libnvme library reports connection errors with it's own error
codes, e.g. ENVME_CONNECT_ALREADY stands for already connected. Update
the connect-all call so that it prints 'already connected' again.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Thu, 2 Jun 2022 12:34:44 +0000 (14:34 +0200)]
build: Update libnvme wrap
Get connect error codes feature from libnvme
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Fri, 3 Jun 2022 10:43:35 +0000 (12:43 +0200)]
Merge pull request #1549 from igaw/list-subsys-ana
nvme-print: Show ANA state only for one namespace
Daniel Wagner [Fri, 3 Jun 2022 08:56:02 +0000 (10:56 +0200)]
Merge pull request #1552 from ankit-sam/master
print: Update nvme id-ctrl ctratt fields and small cleanup
Ankit Kumar [Fri, 3 Jun 2022 13:55:16 +0000 (19:25 +0530)]
print: Update nvme id-ctrl ctratt fields and small cleanup
Signed-off-by: Ankit Kumar <ankit.kumar@samsung.com>
Daniel Wagner [Thu, 2 Jun 2022 08:58:42 +0000 (10:58 +0200)]
nvme-print: Show ANA state only for one namespace
'nvme list-subsys' shows the state of all controllers belonging to a
subsystem. The ANA state is a per namespace attribute hence it only
makes sense to show it if the user lists the subsystem for a
namespace.
Fixes: 7435ed9ae6a6 ("nvme-print: Show paths from the first namespace only")
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Thu, 2 Jun 2022 07:57:12 +0000 (09:57 +0200)]
Merge pull request #1532 from jeffreyalien/tp-4068-4084-master
Changes to support TP-4068 and TP-4084
Jeff Lien [Fri, 20 May 2022 20:34:22 +0000 (15:34 -0500)]
doc: Update to verify and write-zeroes for TP-4068
Signed-off-by: Jeff Lien <jeff.lien@wdc.com>
Brandon Paupore [Fri, 18 Mar 2022 22:03:06 +0000 (17:03 -0500)]
nvme: 64-bit Reference Tags and TP-4068 changes
Signed-off-by: Brandon Paupore <brandon.paupore@wdc.com>
Signed-off-by: Jeff Lien <jeff.lien@wdc.com>
Jeff Lien [Wed, 13 Apr 2022 14:44:35 +0000 (09:44 -0500)]
print: Update show-regs for TP-4084
Signed-off-by: Jeff Lien <jeff.lien@wdc.com>
Jeff Lien [Wed, 1 Jun 2022 18:43:44 +0000 (13:43 -0500)]
print: Fix json_ctrl_registers 64 bit fields
Signed-off-by: Jeff Lien <jeff.lien@wdc.com>
Jeff Lien [Wed, 1 Jun 2022 19:12:37 +0000 (14:12 -0500)]
build: Update libnvme dependency revision
Get the TP-4068 and TP-4084 changes.
Signed-off-by: Jeff Lien <jeff.lien@wdc.com>
Daniel Wagner [Thu, 2 Jun 2022 07:42:50 +0000 (09:42 +0200)]
Merge pull request #1548 from jeffreyalien/new-dev-support
wdc: Add support for new WDC Devices
Daniel Wagner [Thu, 2 Jun 2022 07:41:18 +0000 (09:41 +0200)]
Merge pull request #1547 from igaw/build-docs-on-arch
docs: Don't confuse asciidoc with asciidoctor
Jeff Lien [Wed, 1 Jun 2022 17:58:11 +0000 (12:58 -0500)]
wdc: Add support for new WDC Devices
Signed-off-by: Jeff Lien <jeff.lien@wdc.com>
Daniel Wagner [Wed, 1 Jun 2022 13:53:18 +0000 (15:53 +0200)]
docs: Don't confuse asciidoc with asciidoctor
Apparently, asciidoc and asciidoctor are two different
projects. nvme-cli depends on the former. Depend on asciidoc only and
make it a hard dependency when the user ask to build the doc.
Fixes: 6b18babf40d4 ("docs: Search for 'asciidoctor' as alternative")
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Tue, 31 May 2022 18:34:06 +0000 (20:34 +0200)]
Merge pull request #1545 from igaw/build-docs-on-arch
docs: Search for 'asciidoctor' as alternative
Daniel Wagner [Tue, 31 May 2022 18:26:12 +0000 (20:26 +0200)]
docs: Search for 'asciidoctor' as alternative
There are alternative binary names for asciidoctor. Search for
'asciidoc' or 'asciidoctor' when building the docs.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Fri, 27 May 2022 16:09:25 +0000 (18:09 +0200)]
Merge pull request #1540 from igaw/list-subsys-show-path-once
nvme-print: Show paths from the first namespace only
Daniel Wagner [Fri, 27 May 2022 16:08:49 +0000 (18:08 +0200)]
Merge pull request #1537 from lgdacunha/Solidigm_VU_garbage_collect_log
Added Vendor Unique Solidigm Garbage Collect Log.
da Cunha, Leonardo [Fri, 6 May 2022 23:34:56 +0000 (19:34 -0400)]
Added Vendor Unique Solidigm Garbage Collect Log.
Daniel Wagner [Wed, 25 May 2022 15:33:08 +0000 (17:33 +0200)]
nvme-print: Show paths from the first namespace only
When listing the subsystem, show the path from the first namespace
only. Every namespace has the same paths for a subsystem. This avoids
listening the same controllers for each namespace.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Tue, 24 May 2022 13:12:07 +0000 (15:12 +0200)]
Merge pull request #1531 from igaw/apply-json-config
fabrics: Honor config file for connect-all
Daniel Wagner [Thu, 19 May 2022 12:14:47 +0000 (14:14 +0200)]
fabrics: Honor config file for connect-all
The command line option -J config.json allows to provide a
configuration via a JSON file. We handle this correctly for the
'connect' case but fail to apply the configuration for 'connect-all'
because we missed to add nvme_read_config() in this path.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Wed, 18 May 2022 12:25:58 +0000 (14:25 +0200)]
Merge pull request #1528 from igaw/fix-mec-field
nvme-print: Show mec field in human output instead of vwci
Daniel Wagner [Wed, 18 May 2022 12:17:03 +0000 (14:17 +0200)]
nvme-print: Show mec field in human output instead of vwci
Looks like a copy&past error for the human output.
Reported-by: mgerdts
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Fix:
43460fcce21b ("nvme: add identify controller structure 2.0 spec. fields")
Daniel Wagner [Wed, 18 May 2022 11:57:57 +0000 (13:57 +0200)]
Merge pull request #1526 from igaw/clarify-lisence
treewide: Add SPDX identifier
Daniel Wagner [Wed, 18 May 2022 06:19:23 +0000 (08:19 +0200)]
build: Clarify current main project license
The original desired license for the project was GPL-2.0-or-later
but during the development a few files (e.g. fabrics.c and nvme.h)
got added which are licensed as GPL-2.0-only, which renders the
whole project to GPL-2.0-only.
Update the meson license field and the nvme.spec license field.
While at it mentions this in the contributions notes as well.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Mon, 16 May 2022 14:02:17 +0000 (16:02 +0200)]
treewide: Add SPDX identifier
Add the default project wide license SPDX identifier GPL-2.0-or-later
to all files which do not have any copyright statement.
Add the GPL-2.0-or-later or GPL-2.0-only according the copyright
statement listed in the file.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Tue, 17 May 2022 06:02:56 +0000 (08:02 +0200)]
ocp: Update license to GPL-2.0-or-later
When I reviewed the plugin I asked wrongly for GPL-2.0-only. The
project is using the GPL-2.0-or-later license. Relax the license
requirement to GPL-2.0-or-later.
Cc: Wei Zhang <wzhang@fb.com>
Cc: Venkat Ramesh <venkatraghavan@fb.com>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Arthur Shau <arthurshau@fb.com>
Link: https://lore.kernel.org/r/20220517060256.6733-1-dwagner@suse.de
Daniel Wagner [Tue, 17 May 2022 06:20:23 +0000 (08:20 +0200)]
nvme-rpmb: Update license to GPL-2.0-or-later
The project is using the GPL-2.0-or-later license. Relax the license
requirement to GPL-2.0-or-later.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Hanumanthu H <hanumanthuh@micron.com>
Link: https://lore.kernel.org/r/20220517062806.9448-1-dwagner@suse.de
Daniel Wagner [Tue, 17 May 2022 14:52:27 +0000 (16:52 +0200)]
Merge pull request #1525 from glimchb/master
ci: add static library compilation
Boris Glimcher [Tue, 17 May 2022 14:47:45 +0000 (17:47 +0300)]
ci: bump meson version from 0.53.2 to 0.61.2
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Boris Glimcher [Tue, 17 May 2022 12:22:47 +0000 (15:22 +0300)]
ci: disable werror for uuid subproject
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Boris Glimcher [Mon, 16 May 2022 17:07:20 +0000 (20:07 +0300)]
subprojects: libnvme.wrap update for static uuid
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Boris Glimcher [Fri, 13 May 2022 19:33:51 +0000 (22:33 +0300)]
ci: add static library compilation
Now possible since we can use uuid for fallback
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Daniel Wagner [Tue, 17 May 2022 11:02:25 +0000 (13:02 +0200)]
Merge pull request #1523 from jeffreyalien/sn810-2-master
Changes for WDC SN810-2 Drive
Daniel Wagner [Tue, 17 May 2022 10:52:04 +0000 (12:52 +0200)]
Merge pull request #1510 from lgdacunha/feature/SMART_VU_plugin
Feature/smart vu plugin
da Cunha, Leonardo [Fri, 18 Mar 2022 19:45:43 +0000 (15:45 -0400)]
solidigm: Add Solidigm pluging for vendor specific SMART fields.
Daniel Wagner [Tue, 17 May 2022 06:40:45 +0000 (08:40 +0200)]
Merge pull request #1527 from igaw/remove-parser
util: Remove unused parser
Daniel Wagner [Tue, 17 May 2022 06:33:15 +0000 (08:33 +0200)]
util: Remove unused parser
There is no user for parser. Remove the implementation.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Fri, 13 May 2022 15:36:06 +0000 (17:36 +0200)]
Merge pull request #1524 from glimchb/master
build: use uuid wrap for fallback build
Boris Glimcher [Fri, 13 May 2022 15:27:03 +0000 (18:27 +0300)]
build: use uuid wrap for fallback build
see util-linux/util-linux#1657
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Daniel Wagner [Fri, 13 May 2022 14:48:55 +0000 (16:48 +0200)]
Merge pull request #1518 from bmouring/master
completions: Collapse declaration and attribute assignment
Daniel Wagner [Fri, 13 May 2022 14:42:00 +0000 (16:42 +0200)]
Merge pull request #1513 from Foxboron/morten/systemd-service
meson_options: Include system sub directory
Daniel Wagner [Fri, 13 May 2022 14:28:06 +0000 (16:28 +0200)]
Merge pull request #1522 from igaw/sfx-byte-align
sfx: align fixes + smartlog
yuekunjin [Thu, 28 Apr 2022 11:53:47 +0000 (19:53 +0800)]
sfx: support query-cap change-cap for sfx csd3000
Support query-cap change-cap for myrtle
Co-authored-by: yjin <yuekun.jin@scaleflux.com>
Signed-off-by: Wei Hou <wei.hou@scaleflux.com>
Wei Hou [Wed, 27 Apr 2022 01:40:00 +0000 (09:40 +0800)]
sfx: fixed some of add_smart_log_items not shown issue
Wei Hou [Tue, 19 Apr 2022 07:40:47 +0000 (15:40 +0800)]
sfx: fixed byte aligned issue; add additional smart log items
Daniel Wagner [Fri, 13 May 2022 13:58:07 +0000 (15:58 +0200)]
Merge pull request #1498 from sc108-lee/passthru
nvme: Fix error when passthru does not match opcode based flags
Jeff Lien [Wed, 11 May 2022 21:27:18 +0000 (16:27 -0500)]
wdc: Add vs-temperature-stats for SN810-2
Signed-off-by: Jeff Lien <jeff.lien@wdc.com>
Jeff Lien [Mon, 2 May 2022 20:51:25 +0000 (15:51 -0500)]
wdc: Updated field descriptions in vs-cloud-log command
Fixed printout of 16 byte smart log fields
Signed-off-by: Jeff Lien <jeff.lien@wdc.com>
Jeff Lien [Wed, 11 May 2022 21:41:15 +0000 (16:41 -0500)]
wdc: Update wdc plugin version to 2.0.0
Signed-off-by: Jeff Lien <jeff.lien@wdc.com>
Jeff Lien [Tue, 3 May 2022 22:00:46 +0000 (17:00 -0500)]
doc: Add doc files for wdc vs-device-waf command
Signed-off-by: Jeff Lien <jeff.lien@wdc.com>
Jeff Lien [Tue, 3 May 2022 20:59:28 +0000 (15:59 -0500)]
wdc: add vs-device-waf command
Signed-off-by: Jeff Lien <jeff.lien@wdc.com>
Brad Mouring [Tue, 3 May 2022 03:38:24 +0000 (22:38 -0500)]
completions: Collapse declaration and attribute assignment
Previously, the associative arrays for the vendor/subcommands and
vendor/functions listings were split into a declaration of type
(using "typeset") and attribute definition (using "readonly"). On
bash 5.1.16 (at least), this lead to the following error (reported
after enabling -xv to expand and print shell inputs)
...
+ . /usr/share/bash-completion/completions/nvme
# bash tab completion for the nvme command line utility
# (unfortunately, bash won't let me add descriptions to cmds)
# Kelly Kaoudis kelly.n.kaoudis at intel.com, Aug. 2015
# Constant to indicate command has no options
readonly NO_OPTS=""
++ readonly NO_OPTS=
++ NO_OPTS=
# Associative array of plugins and associated subcommands
# Order here is same as PLUGIN_OBJS in Makefile
typeset -A _plugin_subcmds
++ typeset -A _plugin_subcmds
readonly _plugin_subcmds=(
[intel]="id-ctrl internal-log lat-stats \
...
++ _plugin_subcmds=(['intel']='id-ctrl internal-log lat-stats...
bash: 'intel': syntax error: operand expected (error token is "'intel'")
...
Using the available flags for "typeset" to declare the variables as
readonly arrays resolved the issue (and allows for bash completion
to work as-expected)
Signed-off-by: Brad Mouring <bmouring@gmail.com>
Hannes Reinecke [Mon, 2 May 2022 16:12:45 +0000 (18:12 +0200)]
Merge pull request #1517 from glimchb/master
README: add more badges
Boris Glimcher [Mon, 2 May 2022 10:49:14 +0000 (13:49 +0300)]
README: add more badges
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Morten Linderud [Wed, 27 Apr 2022 21:44:32 +0000 (23:44 +0200)]
meson_options: Include system sub directory
Signed-off-by: Morten Linderud <morten@linderud.pw>
Hannes Reinecke [Fri, 22 Apr 2022 11:40:09 +0000 (13:40 +0200)]
Merge pull request #1512 from hreinecke/coverity
Coverity fixes
Hannes Reinecke [Fri, 22 Apr 2022 11:39:40 +0000 (13:39 +0200)]
Merge pull request #1511 from vincentkfu/addr-cleanup
fabrics: fix help string for connect traddr option
Hannes Reinecke [Fri, 22 Apr 2022 11:22:39 +0000 (13:22 +0200)]
nvme: add '--groups' option to nvme ana-log
Coverity complained that the 'groups' variable was never changed,
so implement a '--groups' option to 'nvme ana-log'.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Fri, 22 Apr 2022 11:20:30 +0000 (13:20 +0200)]
nvme: coverity fixes
Coverity found some logic issues and resource leaks.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Fri, 22 Apr 2022 11:19:02 +0000 (13:19 +0200)]
nvme-rpmb: fixup resource leaks
Found by coverity.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Fri, 22 Apr 2022 11:19:02 +0000 (13:19 +0200)]
nvme-models: fixup resource leaks
Found by coverity.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Fri, 22 Apr 2022 11:18:08 +0000 (13:18 +0200)]
fabrics: 'e->traddr' is static
Found by coverity.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Fri, 22 Apr 2022 11:17:30 +0000 (13:17 +0200)]
util/argconfig: fixup possible overflows
Found by coverity.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Fri, 22 Apr 2022 11:14:37 +0000 (13:14 +0200)]
plugins/zns: fixup resource leaks
Found by coverity.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Fri, 22 Apr 2022 11:14:37 +0000 (13:14 +0200)]
plugins/ymtc: fixup resource leaks
Found by coverity.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Fri, 22 Apr 2022 11:12:57 +0000 (13:12 +0200)]
plugins/virtium: fixup possible string overflows
Found by coverity.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Fri, 22 Apr 2022 11:11:58 +0000 (13:11 +0200)]
plugins/toshiba: fix resource leak
Found by coverity.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Fri, 22 Apr 2022 11:10:01 +0000 (13:10 +0200)]
plugins/seagate: fixup byte calculation
When calculating the number of bytes from the number of blocks one
has to ensure that the values can't overflow, so use a large data
type for the number of bytes than for the number of blocks.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Fri, 22 Apr 2022 11:08:22 +0000 (13:08 +0200)]
plugins/scaleflux: fixup fgetc() usage
fgetc() actually returns an unsigned char.
Found by coverity.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Fri, 22 Apr 2022 11:07:27 +0000 (13:07 +0200)]
plugins/ocp: remove dead code
Found by coverity.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Fri, 22 Apr 2022 11:04:37 +0000 (13:04 +0200)]
plugins/wdc: coverity fixes
Coverity found an off-by-one error when printing raw values; looks
like someone forgot convert the 1-based NVMe spec convention into
the 0-based C convention.
And, of course, various resource leaks.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Fri, 22 Apr 2022 11:01:20 +0000 (13:01 +0200)]
plugins/wdc: fixup error printing and possible size overflow
Fixup handling of error codes and possible overflows when printing
LBA values.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Fri, 22 Apr 2022 10:59:55 +0000 (12:59 +0200)]
plugins/micron: coverity fixes
Cleanup possible string overflows and fix resource leaks found
by coverity.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Fri, 22 Apr 2022 10:49:03 +0000 (12:49 +0200)]
plugins/memblaze: coverity fixes
Fixed some resource leaks and possible string overflows.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Fri, 22 Apr 2022 10:37:22 +0000 (12:37 +0200)]
plugins/intel: fix logic errors
Fixup some logic errors found by coverity.
Signed-off-by: Hannes Reinecke <hare@suse.de>