Repository navigation
Highlights
- Plugins and the top-level command groups are now modules that load when a command needs them. The nvme binary is about a third of its old size, and an initramfs needs the modules for the commands it runs.
- nvme loads libarchive and libkmod at runtime instead of linking them, so packages can make both weak dependencies.
- libnvme applies storage vendors' I/O policy and ctrl_loss_tmo from vendor.d files, with files shipped for NetApp, HPE and VAST Data.
- Connections made by the firmware and the initrd get the owner pre-os, and nvme-discoverd keeps them connected and never disconnects them.
- nvme-discoverd and nvmf-autoconnect fixes, including #3309.
Upgrade notes
- Update dracut and rebuild the initrd together with nvme-cli, see #4152 (comment)
- nvme disconnect now respects connection owners, like disconnect-all.
- nvme copy sends the 80-bit expected tags little-endian (#4278).
- JSON output no longer truncates integers wider than 32 bits.
- libnvme no longer installs 70-nvmf-registry.rules.
What's Changed
- build: fix the RTD build and the Windows release binary name by @martin-belanger in #4353
- argconfig: free the operands buffer at exit by @martin-gpy in #4356
- ci: warn on negative hit counts from gcov by @martin-belanger in #4357
- scripts/mcp: describe what needs root by @igaw in #4358
- ci: build tlshd from ktls-utils 1.5.0 for the nightly tests by @martin-belanger in #4359
- ci: add a workflow to build the nightly test dependencies by @martin-belanger in #4360
- ci: track known blktests failures in issues, add a status page by @dwsuse in #4364
- ci: install the nightly test dependencies from the ci-deps release by @martin-belanger in #4365
- release: fix release.sh and the PyPI publishing by @igaw in #4366
- ci: run the nightly workflows in the evening by @igaw in #4369
- CI workflow restructuring by @igaw in #4370
- ci: publish manual nightly runs on the status page by @igaw in #4371
- ci: move the Windows builds into a workflow of their own by @igaw in #4372
- Nightly log links by @igaw in #4373
- tests: cover NVIDIA id-ctrl with mock controller by @learnrahulrai-ui in #4346
- tests: cover nvme nbft show output modes by @learnrahulrai-ui in #4345
- ocp: add a print-only option and a device fuzz entry for internal-log by @brgoing in #4348
- scripts/fuzz: add a --plugins option to focus device fuzzing by @brgoing in #4354
- nvme-netapp: add netapp plugin optimizations by @martin-gpy in #4355
- support mi command msg type pcie by @wangjudyw in #4337
- MAINTAINERS: update the GitHub handle of the MangoBoost plugin by @jhk16 in #4368
- ocp: test latency-monitor-log against a mocked controller and fix its C3h decoding by @brgoing in #4374
- doc: name the man pages after their commands, add placeholder pages by @dwsuse in #4376
- nvme: fix the PI fallback message of read/write by @dwsuse in #4377
- seagate: only print texts to stdout in non-JSON mode by @jovanlimas in #4375
- Config file mode by @igaw in #4367
- ocp: fix log page status and GUID error reporting by @brgoing in #4378
- scripts/nightly: show the whole nightly run on the status page by @dwsuse in #4380
- tests: check ocp set-latency-monitor-feature data against LMDS layout by @brgoing in #4385
- tests: add mock tests for ocp persistent-event-log by @brgoing in #4387
- fabrics: NBFT host identity, no empty devid file, discovery.conf "none" by @dwsuse in #4384
- nvme-discoverd: run in a sandbox for tests (--set-options test-base-dir/test-sysfs-dir) by @dwsuse in #4382
- nvme-discoverd: mask the legacy autoconnect rule while running by @dwsuse in #4381
- log: voltage measurement log page support by @brandon-paupore-sndk in #4386
- ocp: fix persistent-event-log decoding, lengths and default action by @brgoing in #4389
- scripts/fuzz: stop a libFuzzer process started after Ctrl-C by @dwsuse in #4392
- ci: give the tests in the nightly VMs more time by @dwsuse in #4379
- scripts/dashboard: rename nvme-nightly to nvme-dashboard by @dwsuse in #4390
- shared: add defensive NULL checks to string and parse utilities by @rahadbhuiya in #4391
- shared: add NULL checks to hex, base64, and array utilities by @rahadbhuiya in #4393
- nvme-netapp: query only the selected namespace by @learnrahulrai-ui in #4347
- shared: add NULL checks to suffix, uuid, and wrap utilities by @rahadbhuiya in #4395
- tests: add mock test for dell id-ctrl by @rahadbhuiya in #4396
- tests: add mock test for huawei id-ctrl by @rahadbhuiya in #4397
- ocp: Change HW Component Log printout by @jeff-lien-sndk in #4394
- tests: add mock tests for rpmb write paths by @rahadbhuiya in #4400
- scripts: clone ktls-utils from linux-nfs by @martin-belanger in #4399
- tests: add mock tests for Amazon amzn plugin by @rahadbhuiya in #4401
- libnvme: VLAN ID of an NBFT interface, little endian 80 bit ELBT of copy formats 1h/3h by @dwsuse in #4402
- ci: build FreeBSD on GitHub hosted runners by @dwsuse in #4403
- nvmf-autoconnect, nvme-discoverd: fixes found by the shutdown tests (#3309) by @dwsuse in #4405
- build(deps): bump docker/login-action from 4.7.0 to 4.8.0 by @dependabot[bot] in #4407
- libnvme: apply the vendor defaults of vendor.d after a connect by @dwsuse in #4406
- tests: add mock tests for Transcend transcend plugin by @rahadbhuiya in #4404
- nvme-discoverd: hand-over test harness, and the fixes it found by @dwsuse in #4383
- tests: add mock tests for Solidigm solidigm plugin by @rahadbhuiya in #4408
- nvme-discoverd: use the shared FNV-1a helper by @dwsuse in #4410
- samsung: fuzz vs-internal-log by @h1219-kim in #4398
- tests: add mock tests for the untested ocp plugin commands by @brgoing in #4411
- tests: add mock tests for MangoBoost mangoboost plugin by @rahadbhuiya in #4412
- nvme-discoverd: keep the pre-OS connections without owning them by @dwsuse in #4409
- nvme-discoverd: fix the control socket race in the tests by @its-only-a-model-ship-it in #4418
- ocp: fix defects found by the OCP plugin mock tests by @brgoing in #4413
- tests: add mock tests for DapuStor dapustor plugin by @rahadbhuiya in #4416
- shared: load libarchive at runtime by @dwsuse in #4419
- ci: fix the CI on the ubuntu-26.04 runners by @dwsuse in #4423
- build: fix the git version by @dwsuse in #4421
- Load the plugins as modules, when they are used by @dwsuse in #4420
- ocp: decode version 3 TCG Configuration log pages by @brgoing in #4422
- ocp: make telemetry-string-log fuzzable with --print-only by @brgoing in #4425
- log: use NVM command set CSI without controller capabilities by @ikegami-t in #4415
- nvme-discoverd: reject numbers too large for an unsigned int by @martin-belanger in #4426
- nvme-keysd: build with OpenSSL 4.0 by @martin-belanger in #4428
- libnvme, nvme: Add a Coccinelle check for the shared helpers by @martin-belanger in #4429
- json: keep 64-bit values in json_object_add_value_int() by @MoonRei in #4430
- scripts/fuzz: send the Ctrl-C of the tests to the main thread by @dwsuse in #4431
- nvme-cli: nvmf-autoconnect: Consolidate vendor-specific NVMe-oF udev … by @xosevp in #4424
- libnvme, nvme: Add a Coccinelle check for shr_xstrdup() by @martin-belanger in #4433
- libnvme, nvme: Use asprintf() and the shared trim helpers, add a Coccinelle report by @martin-belanger in #4434
- libnvme, nvme: Add a Coccinelle check for shr_startswith() by @martin-belanger in #4435
- feat: Voltage Measurement Feature Support by @brandon-paupore-sndk in #4437
- libnvme, nvme: Add a Coccinelle report for shr_snprintf_append() by @martin-belanger in #4436
- libnvme, nvme: Use shr_strscpy() and report strncpy() with Coccinelle by @martin-belanger in #4438
- nvme: Use shr_bin_to_hex() and report hex loops with Coccinelle by @martin-belanger in #4439
- treewide: use streq() to test strings for equality by @martin-belanger in #4440
- discoverd/tests: disconnect with --force in the wringer by @martin-belanger in #4441
- wdc: Fix bugs in vs-temperature-stats and get-latency-monitor-log commands by @jeff-lien-sndk in #4442
- shared: load libkmod at runtime by @dwsuse in #4443
- plugins: move the printers into the plugins which use them by @dwsuse in #4445
- tests: find journal messages by cursor in the wringers by @martin-belanger in #4446
- plugins: move the top-level commands into plugins by @dwsuse in #4447
- tests: add mock tests for Dera dera plugin by @rahadbhuiya in #4448
- tests: ignore the /dev prefix in the zns list test by @martin-belanger in #4449
- build: build a minimal libarchive for static builds by @brgoing in #4450
- libnvme: mi-mctp: reject multiple MPR responses for a single command by @niuxiaoch in #4461
- keysd/tests: run the PyKMIP server with OpenSSL 4.0 by @martin-belanger in #4465
- nvme-keysd: KX-HMAC-CHAP secrets from systemd credentials and KMIP by @martin-belanger in #4466
- build: move the archive code out of nvme and enable it in static builds by @brgoing in #4460
- ocp: add set-dssd-async-event-config and set-telemetry-profile --no-uuid by @brgoing in #4468
- keys: harden export --keyfile permissions and descriptor handling by @rahadbhuiya in #4463
- ocp: decode telemetry Event FIFOs of size zero as empty by @brgoing in #4467
- nvme-discoverd: do not give up on referrals, stop retrying while NCC is set by @martin-belanger in #4469
- nvme-types-base: add libnvme OAES reserved bits print getters by @ikegami-t in #4464
New Contributors
- @learnrahulrai-ui made their first contribution in #4346
- @wangjudyw made their first contribution in #4337
- @jovanlimas made their first contribution in #4375
- @rahadbhuiya made their first contribution in #4391
- @its-only-a-model-ship-it made their first contribution in #4418
- @MoonRei made their first contribution in #4430
- @xosevp made their first contribution in #4424
- @niuxiaoch made their first contribution in #4461
Full Changelog: v3.2...v3.3