summaryrefslogtreecommitdiff
authorKay Sievers <kay.sievers@vrfy.org>2012-03-12 17:40:23 (GMT)
committer Kay Sievers <kay.sievers@vrfy.org>2012-03-12 17:40:23 (GMT)
commit481dcf7c8fa8fd9fd181b59443b7e30e9b42add4 (patch) (side-by-side diff)
tree6249b32827261d8be830468d8f33873ba5469ac3
parent8e90942c7af2508f88c7284a0b116caf7ec854a9 (diff)
downloadsystemd-481dcf7c8fa8fd9fd181b59443b7e30e9b42add4.zip
systemd-481dcf7c8fa8fd9fd181b59443b7e30e9b42add4.tar.gz
extras: path_id - skip ATA transport class devices
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--src/udev-builtin-path_id.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/udev-builtin-path_id.c b/src/udev-builtin-path_id.c
index b18b162..5de7219 100644
--- a/src/udev-builtin-path_id.c
+++ b/src/udev-builtin-path_id.c
@@ -317,6 +317,19 @@ static struct udev_device *handle_scsi(struct udev_device *parent, char **path)
goto out;
}
+ /*
+ * We do not support the ATA transport class, it creates duplicated link
+ * names as the fake SCSI host adapters are all separated, they are all
+ * re-based as host == 0. ATA should just stop faking two duplicated
+ * hierarchies for a single topology and leave the SCSI stuff alone;
+ * until that happens, there are no by-path/ links for ATA devices behind
+ * an ATA transport class.
+ */
+ if (strstr(name, "/ata") != NULL) {
+ parent = NULL;
+ goto out;
+ }
+
parent = handle_scsi_default(parent, path);
out:
return parent;