]> git.ipfire.org Git - thirdparty/libvirt.git/commit
migration: Make erroring out on I/O error controllable by flag
authorPeter Krempa <pkrempa@redhat.com>
Wed, 12 Jun 2013 14:11:21 +0000 (16:11 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 18 Jun 2013 12:52:26 +0000 (14:52 +0200)
commitcf6d56ac433273b7e4e087bb861ebced0680cec3
treeb87e02823fc1511f8d93fbb9835d012e140216cb
parentddf8ad82eb5f638d6153f4b1869af17dca572e67
migration: Make erroring out on I/O error controllable by flag

Paolo Bonzini pointed out that it's actually possible to migrate a qemu
instance that was paused due to I/O error and it will be able to work on
the destination if the storage is accessible.

This patch introduces flag VIR_MIGRATE_ABORT_ON_ERROR that cancels the
migration in case an I/O error happens while it's being performed and
allows migration without this flag. This flag can be possibly used for
other error reasons that may be introduced in the future.
include/libvirt/libvirt.h.in
src/qemu/qemu_driver.c
src/qemu/qemu_migration.c
src/qemu/qemu_migration.h
tools/virsh-domain.c
tools/virsh.pod