From: Kay Sievers Date: Tue, 13 Mar 2012 11:55:53 +0000 (+0100) Subject: extras: path_id - add comment about readdir() rebase logic X-Git-Tag: 182~4 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=746b5152cc15eb8c67bdfb5e17f8fc836cde9759 extras: path_id - add comment about readdir() rebase logic --- diff --git a/src/udev-builtin-path_id.c b/src/udev-builtin-path_id.c index 5de72194a..a8559d2dd 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; }