]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virDomainBlockCopy: Introduce VIR_DOMAIN_BLOCK_COPY_SYNCHRONOUS_WRITES flag
authorPeter Krempa <pkrempa@redhat.com>
Wed, 1 Dec 2021 14:09:45 +0000 (15:09 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 7 Dec 2021 08:00:39 +0000 (09:00 +0100)
commitb54c313c33de3f4fc973700e9cfcc9d0d2087851
treeae8334ee3f817eea6a26958f55a3e470a72c00ef
parentb1fc1dbd1a024f13d3bb00fd032f6c80e7024f3f
virDomainBlockCopy: Introduce VIR_DOMAIN_BLOCK_COPY_SYNCHRONOUS_WRITES flag

In cases when the destination storage is slower than the normal VM
storage and the VM does intensive I/O to the disk a block copy job may
never converge.

Switching it to synchronous mode will ensure that all writes done by the
guest are propagated to the destination at the cost of slowing down I/O
of the guest to the synchronous speed.

This patch adds the new API flag and implements virsh support.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
docs/manpages/virsh.rst
include/libvirt/libvirt-domain.h
src/libvirt-domain.c
tools/virsh-domain.c