Currently with '--wwn' flag 128-bit wwns are getting truncated with
their last 3 hex-digit missing. Below is a comparison of wwn reported
by lspsci compared to wwn listed at /dev/disk/by-id directory.

% lsscsi -w 0:0:5:0
[0:0:5:0] disk 0x60050764008181941000000000000 /dev/sdad

% ls -l /dev/disk/by-id/wwn-*
lrwxrwxrwx. 1 root root 10 Oct 19 01:08 
/dev/disk/by-id/wwn-0x600507640081819410000000000001b1 -> ../../sdad

To fix this the patch increases the size of member wwn of struct
disk_wwn_node_entry to 35 chars to accommodate the extra '0x' prefix and
null terminator. Also the size of the buffer wwn_str thats used to
output wwn to the std-out is also increased to match the corresponding
member of disk_wwn_node_entry.

Attachment: fix-lsscsi-Fix-truncation-of-128-bit-wwn.debdiff
Description: Binary data

-- 
Vaibhav Jain <vaib...@linux.vnet.ibm.com>
Linux Technology Center, IBM India Pvt. Ltd.

Reply via email to