Skip to content

tree: handle the case when host_iface/host_traddr are set to "none"#1015

Merged
igaw merged 1 commit intolinux-nvme:masterfrom
martin-belanger:none-handling
May 23, 2025
Merged

tree: handle the case when host_iface/host_traddr are set to "none"#1015
igaw merged 1 commit intolinux-nvme:masterfrom
martin-belanger:none-handling

Conversation

@martin-belanger
Copy link
Copy Markdown
Contributor

When trying to determine if a candidate configuration matches an existing controller connection, treat the candidate's host_iface or host_traddr set to "none" as a NULL pointer.

This is to avoid using host_iface/host_traddr in the comparison with existing connections and falsely concluding that a new connection needs to be created.

This should fix issue: linux-nvme/nvme-cli#2824

When trying to determine if a candidate configuration matches an
existing controller connection, treat the candidate's host_iface
or host_traddr set to "none" as a NULL pointer.

This is to avoid using host_iface/host_traddr in the comparison
with existing connections and falsely concluding that a new
connection needs to be created.

Signed-off-by: Martin Belanger <[email protected]>
Copy link
Copy Markdown

@abhineet99 abhineet99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified this on the setup where I could reproduce the error without the fix, thanks.

@igaw igaw merged commit 4e1ea42 into linux-nvme:master May 23, 2025
12 checks passed
@igaw
Copy link
Copy Markdown
Collaborator

igaw commented May 23, 2025

Thanks!

@martin-belanger martin-belanger deleted the none-handling branch May 23, 2025 12:38
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.

3 participants