[libvirt] [PATCH 4/4] snapshot: qemu: Allow redefinition of external snapshots

Eric Blake eblake at redhat.com
Fri Jan 4 18:26:49 UTC 2013


On 01/03/2013 06:38 AM, Peter Krempa wrote:
> A redefinition of an external inactive snapshot/checkpoint wasn't
> possible without this change.
> ---
>  src/qemu/qemu_driver.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
> index 4c7558d..3a52b47 100644
> --- a/src/qemu/qemu_driver.c
> +++ b/src/qemu/qemu_driver.c
> @@ -11410,7 +11410,7 @@ qemuDomainSnapshotCreateXML(virDomainPtr domain,
> 
>              if (def->dom) {
>                  if (def->state == VIR_DOMAIN_DISK_SNAPSHOT ||
> -                    def->memory == VIR_DOMAIN_SNAPSHOT_LOCATION_EXTERNAL) {
> +                    virDomainSnapshotDefIsExternal(def)) {

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130104/8cf39e3c/attachment-0001.sig>


More information about the libvir-list mailing list