diff options
author | Hannes Reinecke <hare@suse.de> | 2010-09-06 11:00:22 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2010-09-07 08:22:05 +0200 |
commit | db11b20e416ff390339631b34aac559c8915c68d (patch) | |
tree | 869464443f468f9f7451c73708c13596b2f4cc09 /extras/scsi_id/scsi_id.c | |
parent | 397e0169bb6c8f811d8aa117e8f34858caa8b56b (diff) |
scsi_id: export target port group
For ALUA support it's useful to have the target port group number
of a device.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Diffstat (limited to 'extras/scsi_id/scsi_id.c')
-rw-r--r-- | extras/scsi_id/scsi_id.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extras/scsi_id/scsi_id.c b/extras/scsi_id/scsi_id.c index 3811ea542d..6c8826568f 100644 --- a/extras/scsi_id/scsi_id.c +++ b/extras/scsi_id/scsi_id.c @@ -575,6 +575,9 @@ static int scsi_id(struct udev *udev, char *maj_min_dev) printf("ID_WWN_WITH_EXTENSION=0x%s\n", dev_scsi.wwn); } } + if (dev_scsi.tgpt_group[0] != '\0') { + printf("ID_TARGET_PORT=%s\n", dev_scsi.tgpt_group); + } if (dev_scsi.unit_serial_number[0] != '\0') { printf("ID_SCSI_SERIAL=%s\n", dev_scsi.unit_serial_number); } |