[libvirt] [PATCH] [3/4] Implement managed save operations for qemu driver

Eric Blake eblake at redhat.com
Thu Apr 1 19:20:50 UTC 2010


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 at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

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


More information about the libvir-list mailing list