Skip to content

tree: Ignore traddr case in nvme_lookup_ctrl()#267

Merged
igaw merged 1 commit intolinux-nvme:masterfrom
igaw:traddr-case-insesitive
Mar 2, 2022
Merged

tree: Ignore traddr case in nvme_lookup_ctrl()#267
igaw merged 1 commit intolinux-nvme:masterfrom
igaw:traddr-case-insesitive

Conversation

@igaw
Copy link
Copy Markdown
Collaborator

@igaw igaw commented Mar 1, 2022

Some FC discovery controllers return traddr strings with upper case
hexadecimal. There was is no requirement in the NVME-FC specification
that it be upper or lower case. Switch to strcasecmp for case
insentive traddr comparison.

Based on nvme-cli change 1264c6323937 ("nvme-cli: Make connect-all
matching be case insensitive")

Signed-off-by: Daniel Wagner dwagner@suse.de

Some FC discovery controllers return traddr strings with upper case
hexadecimal. There was is no requirement in the NVME-FC specification
that it be upper or lower case. Switch to strcasecmp for case
insentive traddr comparison.

Based on nvme-cli change 1264c6323937 ("nvme-cli: Make connect-all
matching be case insensitive")

Signed-off-by: Daniel Wagner <dwagner@suse.de>
@igaw igaw merged commit b11dc8c into linux-nvme:master Mar 2, 2022
@igaw igaw deleted the traddr-case-insesitive branch March 2, 2022 07:46
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