mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
extras: path_id - skip ATA transport class devices
This commit is contained in:
parent
8e90942c7a
commit
481dcf7c8f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user