Skip to content

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 <haowenchao@huawei.com>
@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