scsi: export 'wwid' to sysfs
authorHannes Reinecke <hare@suse.de>
Tue, 1 Dec 2015 09:16:56 +0000 (10:16 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 2 Dec 2015 21:42:13 +0000 (16:42 -0500)
commit248d4fe95f232010846bc648ce92e40b07544c5d
tree3f8402f1a3fc060ddac3f02a5edb6a018dc62e33
parent9983bed3907c379d1d30b7509bb0a871ed655f9d
scsi: export 'wwid' to sysfs

Use scsi_vpd_lun_id() to export the world-wide unique id (wwid) to
sysfs.  Note that this is the 'best' wwid according to the rules in
scsi_vpd_lun_id(), not every possible wwid presented by the drive.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_sysfs.c
This page took 0.024544 seconds and 5 git commands to generate.