]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Refactor variables for extracting flags in qemuDomainBlockCopyCommon
authorPeter Krempa <pkrempa@redhat.com>
Tue, 21 May 2019 11:51:27 +0000 (13:51 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 15 Jul 2019 08:26:23 +0000 (10:26 +0200)
commit16ca234b56fac8220f3b3361cd6f0992353b3098
tree8c8f8f942d905d22eef1af164dfae4458d6d99f3
parent0db5912617100068203a545695775f83f0ff382c
qemu: Refactor variables for extracting flags in qemuDomainBlockCopyCommon

Add separate booleans for extracting VIR_DOMAIN_BLOCK_COPY_REUSE_EXT and
VIR_DOMAIN_BLOCK_COPY_SHALLOW from '@flags' and also change 'reuse' into
'existing'.

qemuMonitorDriveMirror requires the unmodified state of the flags to
pass to qemu and also we use the value a few times internally. Extract
it separately now.

The 'reuse' flag did not indicate reusing of the file as much as the
fact that the storage is existing and thus should not be created, so
modify the name to reflect this.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_driver.c