1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 20:25:38 +03:00
systemd/extras/scsi_id
David Zeuthen 7f4954d040 Export ID_WWN_VENDOR_EXTENSION and ID_WWN_WITH_EXTENSION
Some SCSI devices use the same WWN and have a WWN extension that we
need to take into account when creating the /dev/disk/by-id/wwn
symlinks. Thus, introduce ID_WWN_WITH_EXTENSION. This property will
contain either the WWN (if no extension is present) or the WWN with
the vendor extension appended.

Example:

 # /lib/udev/ata_id/ata_id --export /dev/sda |grep WWN
 ID_WWN=0x5001517387d61905
 ID_WWN_WITH_EXTENSION=0x5001517387d61905

 # /lib/udev/scsi_id --whitelisted --export -d /dev/sdb |grep WWN
 ID_WWN=0x600508b400105df7
 ID_WWN_VENDOR_EXTENSION=0x0000e00000d80000
 ID_WWN_WITH_EXTENSION=0x600508b400105df70000e00000d80000

 # /lib/udev/scsi_id --whitelisted --export -d /dev/sdc |grep WWN
 ID_WWN=0x600508b400105df7
 ID_WWN_VENDOR_EXTENSION=0x0000e00000db0000
 ID_WWN_WITH_EXTENSION=0x600508b400105df70000e00000db0000

Signed-off-by: David Zeuthen <davidz@redhat.com>
2009-12-04 11:40:00 -05:00
..
.gitignore extras: ignore built and generated files 2007-11-08 00:13:40 +01:00
README scsi_id: remove dead files 2006-01-28 16:42:49 +01:00
scsi_id.8 scsi_id: delete no longer needed config file 2009-06-28 03:01:31 +02:00
scsi_id.c Export ID_WWN_VENDOR_EXTENSION and ID_WWN_WITH_EXTENSION 2009-12-04 11:40:00 -05:00
scsi_id.config correct typo in extras/scsi_id/scsi_id.conf 2007-01-21 15:51:28 +01:00
scsi_id.h Export ID_WWN_VENDOR_EXTENSION and ID_WWN_WITH_EXTENSION 2009-12-04 11:40:00 -05:00
scsi_serial.c Export ID_WWN_VENDOR_EXTENSION and ID_WWN_WITH_EXTENSION 2009-12-04 11:40:00 -05:00
scsi.h scsi_id: remove dead files 2006-01-28 16:42:49 +01:00

scsi_id - generate a SCSI unique identifier for a given SCSI device

Please send questions, comments or patches to <patmans@us.ibm.com> or
<linux-hotplug-devel@lists.sourceforge.net>.