Skip to content

[pull] master from linux-nvme:master#206

Merged
pull[bot] merged 7 commits into
zengqingfu1442:masterfrom
linux-nvme:master
May 7, 2026
Merged

[pull] master from linux-nvme:master#206
pull[bot] merged 7 commits into
zengqingfu1442:masterfrom
linux-nvme:master

Conversation

@pull

@pull pull Bot commented May 7, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

Martin Belanger and others added 7 commits May 7, 2026 18:56
Documents the PyPI publishing workflow: source distribution only (no
wheels), GitHub Actions handles both TestPyPI (on every master push)
and PyPI (on release tags), using OIDC authentication.

Signed-off-by: Martin Belanger <Martin.Belanger@dell.com>
Replace the connect_err/discover_err globals and %exception shims with
a proper exception hierarchy in libnvme/_exceptions.py:

  NvmeError (base, .errno + .message)
  ├── ConnectError
  ├── DisconnectError
  ├── DiscoverError
  └── NotConnectedError (.errno is always 0)

Exceptions are imported into the nvme module namespace at init time
via %init %{} and re-exported via %pythoncode so callers can use
nvme.ConnectError etc. directly.

raise_nvme(cls, err) sets the exception from C; raise_not_connected()
handles the no-errno case. SWIG_fail cannot be used inside %extend
function bodies (they are extracted into SWIGINTERN helpers where the
fail: label is absent), so minimal %exception blocks propagate any
pending exception set by the helper back into the wrapper.

Also rename supported_log_pages() to get_supported_log_pages(), which
now raises NvmeError on failure instead of returning None.

Update discover-loop.py and README.md to match the new API.

Signed-off-by: Martin Belanger <Martin.Belanger@dell.com>
These are leftover files no longer needed following the redesign
of the python bindings.

Signed-off-by: Martin Belanger <martin.belanger@dell.com>
Add two targets for running checkpatch locally before committing:

- checkpatch: runs against committed changes (default base: master,
  overridable via BASE=)
- checkpatch-diff: runs against staged/unstaged working-tree changes
  and any untracked files

checkpatch.pl is fetched from torvalds/linux on first use and cached
in /tmp, mirroring the CI workflow.

Signed-off-by: Martin Belanger <Martin.Belanger@dell.com>
Assisted-by: Claude:claude-sonnet-4-6 [Claude Code]
The previous check-accessors workflow only verified accessors.h and
accessors.c via git diff, leaving six generated files unchecked:
accessors.ld, accessors-fabrics.{h,c,ld}, and accessors{,-fabrics}.i.

Add a -Dcheck-accessors=true meson option.  When set, update-accessors.sh
runs in read-only CI mode (--check flag): it exits non-zero if any .h/.c/.i
file is stale or if the .ld symbol set has drifted.  The .ld check mirrors
the existing developer workflow — symbols are compared rather than the file
contents, because the version-section label requires manual assignment.

The existing update-common-accessors and update-fabrics-accessors targets
gain the --check flag when the option is enabled; no new targets are needed.
The CI workflow passes -Dcheck-accessors=true to meson setup and replaces
the separate git-diff step with a single meson compile update-accessors.

Signed-off-by: Martin Belanger <Martin.Belanger@dell.com>
Assisted-by: Claude:claude-sonnet-4-6 [Claude Code]
We need to specify the devices that are passed though to the VM when
running the tests. The kubevirt-action should not be responsible for
picking the testing devices.

Signed-off-by: Dennis Maisenbacher <dennis.maisenbacher@wdc.com>
The recently added function nvmf_update_tls_concat() dereferences struct
nvmf_disc_log_entry *e, but e will always be NULL when called via
libnvmf_discovery_nbft(). This can result in a segmentation fault when
attempting "nvme connect-all --nbft".

Check for NULL pointer before dereferencing.

Signed-off-by: Stuart Hayes <stuart.w.hayes@gmail.com>
Link: https://patch.msgid.link/20260506205345.64478-1-stuart.w.hayes@gmail.com
Signed-off-by: Daniel Wagner <wagi@kernel.org>
@pull pull Bot locked and limited conversation to collaborators May 7, 2026
@pull pull Bot added the ⤵️ pull label May 7, 2026
@pull pull Bot merged commit 0f4fe45 into zengqingfu1442:master May 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants