Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lsscsi wwn number output error #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wenchao-hao
Copy link

current lsscsi -w output the wrong wwn id like following
$ lsscsi -w
[3:0:0:2] disk LIO-ORG disk2 4.0 0x36001405a7da98a3af35412a96c5576a /dev/sdc

the correct id should be
$ udevadm info --export-db | grep WWN
E: ID_WWN=0x6001405a7da98a3a
E: ID_WWN_VENDOR_EXTENSION=0xf35412a96c5576a2
E: ID_WWN_WITH_EXTENSION=0x6001405a7da98a3af35412a96c5576a2

The true wwn number is from the sixth byte of scsi-*

Signed-off-by: Wenchao Hao <[email protected]>
@doug-gilbert
Copy link
Owner

Thanks, your patch is correct and will be included. At some point an extra digit was added to the identify ('3' in this case meaning NAA) and that pushed the rightmost (lowest) digit off the end of the string. I'm looking at some related issues. A new version will be uploaded soon.

@doug-gilbert
Copy link
Owner

The fix proposed on 20210608 has been applied upstream and is reflected in the code in this repository. [Hence the "conflicting files" indication above.]
Could you be a bit clearer on what the problem you are seeing? Perhaps with an example.

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