Re: [PATCH 2/4] qemu: snapshot: Forbid partial internal snapshots

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

 



On 05/20/2014 07:36 AM, Peter Krempa wrote:
> qemu's savevm command does a snapshot of all non readonly disks of a VM.
> Libvirt though allowed disabling snapshot for certain disk of a VM.
> ---
>  src/qemu/qemu_driver.c | 15 ++++++++++-----
>  1 file changed, 10 insertions(+), 5 deletions(-)

I think this may even be a regression introduced when we added
checkpoint snapshots, because I seem to recall trying to prevent just
this back when doing external disk snapshots.  But I didn't bother to
crawl git history to confirm or deny my suspicion.


> @@ -12699,12 +12703,13 @@ qemuDomainSnapshotPrepare(virConnectPtr conn,
>          }
>      }
> 
> -    /* internal snapshot requires a disk image to store the memory image to */
> -    if (def->memory == VIR_DOMAIN_SNAPSHOT_LOCATION_INTERNAL &&
> -        !found_internal) {
> +    /* internal snapshot requires a disk image to store the memory image to and

s/to and/to, and/

> +     * also disks can't be excluded from a internal snapshot*/

s/a internal/an internal/

> +    if ((def->memory == VIR_DOMAIN_SNAPSHOT_LOCATION_INTERNAL && !found_internal) ||
> +        (found_internal && forbid_internal)) {
>          virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
> -                       _("internal checkpoints require at least "
> -                         "one disk to be selected for snapshot"));
> +                       _("internal snapshots and checkpoints require all "
> +                         "disks to be selected for snapshot"));
>          goto cleanup;
>      }
> 

ACK with the comment grammar fixes

-- 
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]