Re: [PATCH 4/7] qemu: snapshot: Reject revertion from clearly bad states

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

 



On 07/18/2014 10:11 AM, Peter Krempa wrote:
> Report errors on some states snapshots done by qemu should never reach
> ---
>  src/qemu/qemu_driver.c | 12 +++++++++---
>  1 file changed, 9 insertions(+), 3 deletions(-)
> 

> +
> +    case VIR_DOMAIN_NOSTATE:
> +    case VIR_DOMAIN_BLOCKED:
> +    case VIR_DOMAIN_LAST:
> +        virReportError(VIR_ERR_INTERNAL_ERROR,
> +                       _("Invalid target domain state '%s'. Refusing "
> +                         "snapshot revertion "),

s/revertion /reversion/

(typo and trailing space)

> +                       virDomainStateTypeToString(snap->def->state));
> +        goto cleanup;
>      }

ACK with that fixed.  It might also be nice to patch
qemuDomainSnapshotCreateXML with the _REDEFINE flag to likewise reject
modifying an existing snapshot into one of these states.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
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

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]