]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Add blockdev support for the block copy job
authorPeter Krempa <pkrempa@redhat.com>
Mon, 22 Jul 2019 11:59:01 +0000 (13:59 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 16 Aug 2019 11:26:10 +0000 (13:26 +0200)
commitce7229a3b0d28479e0f123efce3fa73617889a50
treec220d3c67102aae2286612763736ab7d66832808
parent545edb25022f8936be2356a98097a5d25dec4e42
qemu: Add blockdev support for the block copy job

Implement job handling for the block copy job (drive/blockdev-mirror)
when using -blockdev. In contrast to the previously implemented
blockjobs the block copy job introduces new images to the running qemu
instance, thus requires a bit more handling.

When copying to new images the code now makes use of blockdev-create to
format the images explicitly rather than depending on automagic qemu
behaviour.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_blockjob.c
src/qemu/qemu_blockjob.h
src/qemu/qemu_domain.c
src/qemu/qemu_driver.c
tests/qemustatusxml2xmldata/blockjob-blockdev-in.xml