You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
libata: add a host flag to ignore detected ATA devices
Where devices are visible via more than one host we sometimes wish to indicate that cirtain devices should be ignored on a specific host. Add a host flag indicating that this host wishes to ignore ATA specific devices. Signed-off-by: Andy Whitcroft <apw@canonical.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
committed by
Jeff Garzik
parent
d48b97b403
commit
db63a4c811
@@ -1973,6 +1973,12 @@ retry:
|
||||
if (class == ATA_DEV_ATA) {
|
||||
if (!ata_id_is_ata(id) && !ata_id_is_cfa(id))
|
||||
goto err_out;
|
||||
if (ap->host->flags & ATA_HOST_IGNORE_ATA &&
|
||||
ata_id_is_ata(id)) {
|
||||
ata_dev_dbg(dev,
|
||||
"host indicates ignore ATA devices, ignored\n");
|
||||
return -ENOENT;
|
||||
}
|
||||
} else {
|
||||
if (ata_id_is_ata(id))
|
||||
goto err_out;
|
||||
|
||||
Reference in New Issue
Block a user