[libvirt] [PATCH 22/25] qemu: blockjob: Track orphaned backing chains in blockjob status XML

Ján Tomko jtomko at redhat.com
Mon Jul 15 15:45:33 UTC 2019


On Fri, Jul 12, 2019 at 06:06:03PM +0200, Peter Krempa wrote:
>When the guest unplugs the disk frontend libvirt is responsible for
>deleting the backend. Since a blockjob may still have a reference to the
>backing chain when it is running we'll have to store the metadata for
>the unplugged disk for future reference.
>
>This patch adds 'chain' and 'mirrorChain' fields to 'qemuBlockJobData'
>to keep them around with the job along with status XML machinery and
>tests. Later patches will then add code to change the ownership of the
>chain when unplugging the disk backend.
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/qemu/qemu_blockjob.c                      |   5 +
> src/qemu/qemu_blockjob.h                      |   2 +
> src/qemu/qemu_domain.c                        | 124 ++++++++++++++++--
> .../blockjob-blockdev-in.xml                  |  37 ++++++
> 4 files changed, 160 insertions(+), 8 deletions(-)
>

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: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190715/8d2b65cf/attachment-0001.sig>


More information about the libvir-list mailing list