[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]