[virt-tools-list] [virt-manager PATCH 1/5] details: Show attached disk info in sata, ide and floppy controller page
Cole Robinson
crobinso at redhat.com
Tue Jul 31 14:36:49 UTC 2018
On 07/18/2018 06:00 AM, Lin Ma wrote:
> Reflect controllers <-> disks mapping relationship for not only scsi,
> But other storage controllers.
>
> As a bonus, These controllers are not allowed to be removed if there are
> disks attached to them.
>
> Signed-off-by: Lin Ma <lma at suse.com>
> ---
> virtManager/details.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/virtManager/details.py b/virtManager/details.py
> index 145101c2..4b145602 100644
> --- a/virtManager/details.py
> +++ b/virtManager/details.py
> @@ -3025,7 +3025,7 @@ class vmmDetails(vmmGObjectUI):
> can_remove = False
> if controller.type == "pci":
> can_remove = False
> - if controller.type == "scsi":
> + elif controller.type in ["scsi", "sata", "ide", "fdc"]:
> model = self.widget("controller-device-list").get_model()
> model.clear()
> for disk in _calculate_disk_bus_index(self.vm.xmlobj.devices.disk):
>
Sorry for the review delay. I've pushed this patch now
Thanks,
Cole
More information about the virt-tools-list
mailing list