Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
edd: Fix the error case in the "absurd_virt" test.
The problem is that SeaBIOS (and thus our qemu VMs) doesn't enumerate ata devices separately from PCI devices. So on a real system, EddEntry.ata_device should reset to 0 for each new PCI device, but on a virt running SeaBIOS, they just count up monotonically. So do the /right/ thing when we can, and if we don't find a correct device, try relaxing the requirement on the scsi target id in sysfs, and see if we find the right port number anyway. Signed-off-by: Peter Jones <pjones@redhat.com>
- Loading branch information
Showing
2 changed files
with
92 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters