]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: snapshot: Reject internal active snapshot without memory state
authorPeter Krempa <pkrempa@redhat.com>
Thu, 29 May 2014 08:52:57 +0000 (10:52 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 29 May 2014 15:00:11 +0000 (17:00 +0200)
commitd2e668e535fd62810eb268351e9e74a483efd0d4
treef6a53f605ed1b86f830dd95054eb9990509b86f7
parent4a051b807ec35d2b0aab125add19edb6d769bddb
qemu: snapshot: Reject internal active snapshot without memory state

A internal snapshot of a active VM with the memory snapshot disabled
explicitly would actually still take the memory snapshot. Reject it
explicitly.

Before:
 $ virsh snapshot-create-as --domain VM --diskspec vda,snapshot=internal --memspec snapshot=no
 Domain snapshot 1401353155 created

After:
 $ virsh snapshot-create-as --domain VM --diskspec vda,snapshot=internal --memspec snapshot=no
 error: Operation not supported: internal snapshot of a running VM must include the memory state

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1083345
src/qemu/qemu_driver.c