Commit 7233d17
committed
kvm: drop the virtio-blk checks on running disks, which can never match
A virtio-blk disk is written to the domain XML with libvirt's 'virtio' bus, so
the running domain reports it back as VIRTIO and the VIRTIOBLK checks on the
parsed disks are dead code. Attaching to a virtio-blk VM is handled by the
fallback to the VM's rootDiskController detail in getAttachDiskBusType().
LibvirtComputingResource.attachOrDetachDisk() is back to what it was; nothing
calls it.1 parent 3d7ab65 commit 7233d17
2 files changed
Lines changed: 1 addition & 5 deletions
File tree
- plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm
- resource
- storage
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3613 | 3613 | | |
3614 | 3614 | | |
3615 | 3615 | | |
3616 | | - | |
3617 | | - | |
3618 | 3616 | | |
3619 | 3617 | | |
3620 | 3618 | | |
3621 | 3619 | | |
3622 | 3620 | | |
3623 | 3621 | | |
3624 | | - | |
| 3622 | + | |
3625 | 3623 | | |
3626 | 3624 | | |
3627 | 3625 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1544 | 1544 | | |
1545 | 1545 | | |
1546 | 1546 | | |
1547 | | - | |
1548 | | - | |
1549 | 1547 | | |
1550 | 1548 | | |
1551 | 1549 | | |
| |||
0 commit comments