From: Kay Sievers Date: Sat, 6 Jun 2009 18:36:46 +0000 (+0200) Subject: path_id: add comments X-Git-Tag: 174~1009 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffd0afe8a996f8716e5fa9b58bbd313d98007a2f;p=systemd path_id: add comments --- diff --git a/extras/path_id/path_id.c b/extras/path_id/path_id.c index 603e108a..4531b5e2 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;