]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Introduce code for blockdev-create
authorPeter Krempa <pkrempa@redhat.com>
Mon, 10 Jun 2019 16:13:09 +0000 (18:13 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 16 Aug 2019 11:26:10 +0000 (13:26 +0200)
commit545edb25022f8936be2356a98097a5d25dec4e42
tree09caeabcb974229ddc33e10c57ebb56bca0ab9b7
parent7b8db52f5bb0e7ddc23a8be3397ebcbb3cf1927d
qemu: Introduce code for blockdev-create

QEMU finally exposes an interface which allows us to instruct it to
format or create arbitrary images. This is required for blockdev
integration of block copy and snapshots as we need to pre-format images
prior to use with blockdev-add.

This path introduces job handling and also helpers for formatting and
attaching a whole image described by a virStorageSource.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_block.c
src/qemu/qemu_block.h
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