chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c122b6f
)
path_id: add comments
author
Kay Sievers
<kay.sievers@vrfy.org>
Sat, 6 Jun 2009 18:36:46 +0000
(20:36 +0200)
committer
Kay Sievers
<kay.sievers@vrfy.org>
Sat, 6 Jun 2009 18:36:46 +0000
(20:36 +0200)
extras/path_id/path_id.c
patch
|
blob
|
history
diff --git
a/extras/path_id/path_id.c
b/extras/path_id/path_id.c
index 603e108aeb4d4e644e07e98f9c0dd8b414d748f4..4531b5e29a76b3ed70c961ef941d01d1b1aa7ff4 100644
(file)
--- 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;