summaryrefslogtreecommitdiff
path: root/extras/scsi_id/scsi_id.c
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2010-09-06 11:00:22 +0200
committerKay Sievers <kay.sievers@vrfy.org>2010-09-07 08:22:05 +0200
commitdb11b20e416ff390339631b34aac559c8915c68d (patch)
tree869464443f468f9f7451c73708c13596b2f4cc09 /extras/scsi_id/scsi_id.c
parent397e0169bb6c8f811d8aa117e8f34858caa8b56b (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.c3
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);
}