]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: snapshot: Improve detection of mixed snapshots v1.2.5-rc2
authorPeter Krempa <pkrempa@redhat.com>
Thu, 29 May 2014 09:02:43 +0000 (11:02 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 29 May 2014 15:00:11 +0000 (17:00 +0200)
commit23f38f8813fb39e45e32aad228a7da0fec63ffee
tree33c6bdc3a6653219b3264dc42d0290b07689922c
parentd2e668e535fd62810eb268351e9e74a483efd0d4
qemu: snapshot: Improve detection of mixed snapshots

Currently we don't support mixed (external + internal) snapshots. The
code detecting the snapshot type didn't make sure that the memory image
was consistent with the snapshot type leading into strange error
message:

 $ virsh snapshot-create-as --domain VM --diskspec vda,snapshot=internal --memspec snapshot=external,file=/tmp/blah
 error: internal error: unexpected code path

Fix the mixed detection code to detect this kind of mistake:

 $ virsh snapshot-create-as --domain VM --diskspec vda,snapshot=internal --memspec snapshot=external,file=/tmp/blah
 error: unsupported configuration: mixing internal and external targets for a snapshot is not yet supported
src/qemu/qemu_driver.c