Re: [libvirt PATCH 13/20] qemu_snapshot: prepare data for non-active leaf external snapshot deletion

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

 



On Mon, Mar 13, 2023 at 16:42:14 +0100, Pavel Hrdina wrote:
> In this case there is no need to run block commit and using qemu process
> at all.
> 
> Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
> ---
>  src/qemu/qemu_snapshot.c | 52 ++++++++++++++++++++++------------------
>  1 file changed, 29 insertions(+), 23 deletions(-)
> 
> diff --git a/src/qemu/qemu_snapshot.c b/src/qemu/qemu_snapshot.c
> index 6ff18d7a9e..be2e5c8cc4 100644
> --- a/src/qemu/qemu_snapshot.c
> +++ b/src/qemu/qemu_snapshot.c
> @@ -2597,34 +2597,40 @@ qemuSnapshotDeleteExternalPrepare(virDomainObj *vm,

[...]

Please explain the logic and implications in a comment above this
condition.

> +    if (snap != virDomainSnapshotGetCurrent(vm->snapshots) &&
> +        snap->nchildren == 0) {
> +        if (qemuSnapshotDeleteExternalPrepareData(vm, snap, false, externalData) < 0)
>              return -1;
>      } else {

Reviewed-by: Peter Krempa <pkrempa@xxxxxxxxxx>




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

  Powered by Linux