]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Reset hasManagedSave after removing a corrupted image
authorJiri Denemark <jdenemar@redhat.com>
Tue, 24 Oct 2017 08:32:03 +0000 (10:32 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 24 Oct 2017 09:07:10 +0000 (11:07 +0200)
When starting a domain with managed save image, we try to restore it
first. If the image is corrupted, we silently unlink it and just
normally start the domain. At this point the domain has no managed save
image, yet we did not reset the hasManagedSave flag.

https://bugzilla.redhat.com/show_bug.cgi?id=1460962

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_driver.c

index 32a416f9e04b50dae414029d550c99700ab33e1e..74fdfdb0f08acdbef3c38d8943dd3b1318b7e3fd 100644 (file)
@@ -7256,6 +7256,7 @@ qemuDomainObjStart(virConnectPtr conn,
             } else {
                 VIR_WARN("Ignoring incomplete managed state %s", managed_save);
                 priv->job.current->operation = op;
+                vm->hasManagedSave = false;
             }
         }
     }