[libvirt] [PATCHv2 28/62] qemu: Add field to store QDEV path of a disk in private data

Ján Tomko jtomko at redhat.com
Thu Aug 16 12:21:43 UTC 2018


On Mon, Aug 13, 2018 at 06:00:02PM +0200, Peter Krempa wrote:
>When using -blockdev you need to use the qdev path to refer to the disk
>fronends. Add means for storing the path and getting it after restart.

frontends

>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/qemu/qemu_domain.c                    | 27 +++++++++++++++++++++++++++
> src/qemu/qemu_domain.h                    |  2 ++
> tests/qemustatusxml2xmldata/modern-in.xml |  3 +++
> 3 files changed, 32 insertions(+)
>
>diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
>index 032ad80baa..3058ceca79 100644
>--- a/src/qemu/qemu_domain.c
>+++ b/src/qemu/qemu_domain.c
>@@ -1065,6 +1065,7 @@ qemuDomainDiskPrivateDispose(void *obj)
>
>     VIR_FREE(priv->blockJobError);
>     virStorageSourceFree(priv->migrSource);
>+    VIR_FREE(priv->backendQomName);

Would look better after:

s/backendQomName/backendQOMName/


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

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180816/a5ae9126/attachment-0001.sig>


More information about the libvir-list mailing list