[libvirt] [PATCHv2 17/62] qemu: hotplug: Don't generate alias when detaching disk

Peter Krempa posted 62 patches 7 years, 5 months ago
[libvirt] [PATCHv2 17/62] qemu: hotplug: Don't generate alias when detaching disk
Posted by Peter Krempa 7 years, 5 months ago
It should be impossible to lack an alias in the domain definition. Other
disk types don't generate it so remove it here as well.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
---
 src/qemu/qemu_hotplug.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
index 87bc63e5e1..53ee01bc54 100644
--- a/src/qemu/qemu_hotplug.c
+++ b/src/qemu/qemu_hotplug.c
@@ -4915,11 +4915,6 @@ qemuDomainDetachVirtioDiskDevice(virQEMUDriverPtr driver,
         goto cleanup;
     }

-    if (!detach->info.alias) {
-        if (qemuAssignDeviceDiskAlias(vm->def, detach) < 0)
-            goto cleanup;
-    }
-
     if (!async)
         qemuDomainMarkDeviceForRemoval(vm, &detach->info);

-- 
2.16.2

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCHv2 17/62] qemu: hotplug: Don't generate alias when detaching disk
Posted by Ján Tomko 7 years, 5 months ago
On Mon, Aug 13, 2018 at 05:59:51PM +0200, Peter Krempa wrote:
>It should be impossible to lack an alias in the domain definition. Other
>disk types don't generate it so remove it here as well.
>
>Signed-off-by: Peter Krempa <pkrempa@redhat.com>
>---
> src/qemu/qemu_hotplug.c | 5 -----
> 1 file changed, 5 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko@redhat.com>

Jano
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list