summaryrefslogtreecommitdiff
path: root/extras/path_id/path_id.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-06-06 20:36:46 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-06-06 20:36:46 +0200
commitffd0afe8a996f8716e5fa9b58bbd313d98007a2f (patch)
tree1b6f78936b1a38311f668cbcb13a9220df9252a2 /extras/path_id/path_id.c
parentc122b6fadfad94fc66c89390ac2354418a45ded7 (diff)
path_id: add comments
Diffstat (limited to 'extras/path_id/path_id.c')
-rw-r--r--extras/path_id/path_id.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/extras/path_id/path_id.c b/extras/path_id/path_id.c
index 603e108aeb..4531b5e29a 100644
--- a/extras/path_id/path_id.c
+++ b/extras/path_id/path_id.c
@@ -190,6 +190,7 @@ static struct udev_device *handle_scsi_lun(struct udev_device *parent, char **pa
/* firewire */
id = udev_device_get_sysattr_value(parent, "ieee1394_id");
if (id != NULL) {
+ parent = skip_subsystem(parent, "scsi");
path_prepend(path, "ieee1394-0x%s", id);
goto out;
}
@@ -208,11 +209,13 @@ static struct udev_device *handle_scsi_lun(struct udev_device *parent, char **pa
goto out;
}
+ /* iSCSI */
if (strstr(name, "/session") != NULL) {
parent = handle_iscsi(parent, path);
goto out;
}
+ /* default */
parent = handle_scsi(parent, path);
out:
return parent;