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
(parent:
3bfc7a9
)
extras: path_id - add comment about readdir() rebase logic
author
Kay Sievers
<kay.sievers@vrfy.org>
Tue, 13 Mar 2012 11:55:53 +0000
(12:55 +0100)
committer
Kay Sievers
<kay.sievers@vrfy.org>
Tue, 13 Mar 2012 11:55:53 +0000
(12:55 +0100)
src/udev-builtin-path_id.c
patch
|
blob
|
history
diff --git
a/src/udev-builtin-path_id.c
b/src/udev-builtin-path_id.c
index 5de72194a2185bbbc93b85630d182994fe165c0e..a8559d2dd4118ac89feb03b7db8ef364caa73a0b 100644
(file)
--- a/
src/udev-builtin-path_id.c
+++ b/
src/udev-builtin-path_id.c
@@
-265,6
+265,11
@@
static struct udev_device *handle_scsi_default(struct udev_device *parent, char
i = strtoul(&dent->d_name[4], &rest, 10);
if (rest[0] != '\0')
continue;
+ /*
+ * find the smallest number; the host really needs to export its
+ * own instance number per parent device; relying on the global host
+ * enumeration and plainly rebasing the numbers sounds unreliable
+ */
if (basenum == -1 || i < basenum)
basenum = i;
}