47313b1
From c96c14e1f545e6533c781e33c2238d1433deb30f Mon Sep 17 00:00:00 2001
b397f2a
From: Kay Sievers <kay@vrfy.org>
b397f2a
Date: Thu, 30 Oct 2014 01:18:34 +0100
b397f2a
Subject: [PATCH] udev: path_id - update comments
b397f2a
b397f2a
(cherry picked from commit a42cdff19f2d34f12ceca0f40707421a8aaa2c2f)
b397f2a
---
b397f2a
 src/udev/udev-builtin-path_id.c | 12 ++++++------
b397f2a
 1 file changed, 6 insertions(+), 6 deletions(-)
b397f2a
b397f2a
diff --git a/src/udev/udev-builtin-path_id.c b/src/udev/udev-builtin-path_id.c
b397f2a
index 0d247f6b5a..df996cb17a 100644
b397f2a
--- a/src/udev/udev-builtin-path_id.c
b397f2a
+++ b/src/udev/udev-builtin-path_id.c
b397f2a
@@ -548,9 +548,9 @@ static int builtin_path_id(struct udev_device *dev, int argc, char *argv[], bool
b397f2a
         }
b397f2a
 
b397f2a
         /*
b397f2a
-         * Do return devices with have an unknown type of parent device, they
b397f2a
-         * might produce conflicting IDs below multiple independent parent
b397f2a
-         * devices.
b397f2a
+         * Do not return devices with an unknown parent device type. They
b397f2a
+         * might produce conflicting IDs if the parent does not provide a
b397f2a
+         * unique and predictable name.
b397f2a
          */
b397f2a
         if (!supported_parent) {
b397f2a
                 free(path);
b397f2a
@@ -558,9 +558,9 @@ static int builtin_path_id(struct udev_device *dev, int argc, char *argv[], bool
b397f2a
         }
b397f2a
 
b397f2a
         /*
b397f2a
-         * Do not return a have-only a single-parent block devices, some
b397f2a
-         * have entire hidden buses behind it, and not create predictable
b397f2a
-         * IDs that way.
b397f2a
+         * Do not return block devices without a well-known transport. Some
b397f2a
+         * devices do not expose their buses and do not provide a unique
b397f2a
+         * and predictable name that way.
b397f2a
          */
b397f2a
         if (streq(udev_device_get_subsystem(dev), "block") && !supported_transport) {
b397f2a
                 free(path);