Skip to content

libnvme: add a namespace WWID accessor - #4179

Merged
igaw merged 1 commit into
linux-nvme:masterfrom
ooonea:fix/namespace-uuid-wwid
Oct 15, 2026
Merged

igaw merged 1 commit into
linux-nvme:masterfrom
ooonea:fix/namespace-uuid-wwid

Conversation

@ooonea

@ooonea ooonea commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Add a generated libnvme_ns_get_wwid() accessor and use it in the topology test. This avoids reading the legacy uuid sysfs attribute, which warns when falling back to the NGUID, while leaving the existing identifier accessors unchanged.

Built on Linux; 158 native tests passed with two expected failures. Nine synthetic WWID cases passed, including absent/empty values and cached reads. Accessor regeneration is clean.

@igaw

igaw commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

These files are generated. So this change will be overwritten by the next time the generators run.

I think we should leave the accessors as they are and instead introduce one for the wwid and fixup the callsites instead.

Expose the namespace wwid through the generated lazy accessors and use
it in the topology test instead of the legacy uuid sysfs attribute,
which warns when falling back to the NGUID. Keep the existing identifier
accessors unchanged.

Signed-off-by: ooonea <35407790+ooonea@users.noreply.github.com>
Assisted-by: OpenAI Codex
@ooonea
ooonea force-pushed the fix/namespace-uuid-wwid branch from f30048d to c51d139 Compare October 14, 2026 16:14
@ooonea ooonea changed the title libnvme: read namespace UUID from the typed WWID libnvme: add a namespace WWID accessor Oct 14, 2026
@igaw
igaw merged commit 92254d1 into linux-nvme:master Oct 15, 2026
30 checks passed
@igaw

igaw commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator

Ah just the test case was using the uuid. Glad this solves it so simple.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants