summaryrefslogtreecommitdiff
path: root/src/udev-builtin-path_id.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2012-03-13 12:55:53 +0100
committerKay Sievers <kay.sievers@vrfy.org>2012-03-13 12:55:53 +0100
commit746b5152cc15eb8c67bdfb5e17f8fc836cde9759 (patch)
treef47d5ca40339099250e0eab246ec9ac9ba8652d8 /src/udev-builtin-path_id.c
parent3bfc7a97b1824fcdfb738617d9a5450a20a22a0f (diff)
extras: path_id - add comment about readdir() rebase logic
Diffstat (limited to 'src/udev-builtin-path_id.c')
-rw-r--r--src/udev-builtin-path_id.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/udev-builtin-path_id.c b/src/udev-builtin-path_id.c
index 5de72194a2..a8559d2dd4 100644
--- 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;
}