On 04/01/2010 10:22 AM, Daniel Veillard wrote: > @@ -5928,6 +6096,29 @@ static int qemudDomainStart(virDomainPtr dom) { > goto endjob; > } > > + /* > + * If there is a managed saved state restore it instead of starting > + * from scratch. In any case the old state is removed. > + */ > + managed_save = qemuDomainManagedSavePath(driver, vm); > + if ((managed_save) && (virFileExists(managed_save))) { > + virDomainObjUnlock(vm); > + qemuDriverUnlock(driver); > + ret = qemudDomainRestore(dom->conn, managed_save); > + > + if (unlink(managed_save) < 0) { > + VIR_WARN("Failed to remove the mnaged state %s", managed_save); s/mnaged/managed/ -- Eric Blake eblake@xxxxxxxxxx +1-801-349-2682 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list