]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: enforce REVERT_FORCE on qemu
authorEric Blake <eblake@redhat.com>
Fri, 30 Sep 2011 18:19:41 +0000 (12:19 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 5 Oct 2011 17:33:39 +0000 (11:33 -0600)
commit29879b550b940db8a5332752c4bcfc565c999abf
treef153cd9f69ada04f5fbe95a1f2d37a36c6e71d51
parent70e015e12f3bc14ad592fb5d554795a61cd99881
snapshot: enforce REVERT_FORCE on qemu

Implements the documentation for snapshot revert vs. force.

Part of the patch tightens existing behavior (previously, reverting
to an old snapshot without <domain> was blindly attempted, now it
requires force), while part of it relaxes behavior (previously, it
was not possible to revert an active domain to an ABI-incompatible
active snapshot, now force allows this transition).

* src/qemu/qemu_driver.c (qemuDomainRevertToSnapshot): Check for
risky situations, and allow force to get past them.
src/qemu/qemu_driver.c