Repository navigation
libnvme: add a namespace WWID accessor - #4179
Merged
Merged
Conversation
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
force-pushed
the
fix/namespace-uuid-wwid
branch
from
October 14, 2026 16:14
f30048d to
c51d139
Compare
Collaborator
|
Ah just the test case was using the uuid. Glad this solves it so simple. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a generated
libnvme_ns_get_wwid()accessor and use it in the topology test. This avoids reading the legacyuuidsysfs 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.