[pve-devel] applied: [PATCH qemu-server v3] fix #2788: do not resume vms after backup if they were paused before

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Jan 26 18:43:28 CET 2021


On 20.01.21 13:32, Dominik Csapak wrote:
> by checking if the vm is paused at the beginning and skipping the resume
> now we also skip the qga freeze/thaw (which cannot work if the vm is
> paused)
> 
> moved the 'vm_is_paused' sub from the api to PVE/QemuServer.pm so it is
> available everywhere we need it.
> 
> since a suspend backup would pause the vm anyway, we can skip that step
> also
> 
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
> changes to v2:
> * actually include code changes (git add is not optional), sry for the noise
> 
>  PVE/API2/Qemu.pm         | 14 ++------------
>  PVE/QemuServer.pm        | 10 ++++++++++
>  PVE/VZDump/QemuServer.pm | 11 +++++++++--
>  3 files changed, 21 insertions(+), 14 deletions(-)
> 
>

applied, with Fabi's T-b, thanks!

Not sure if it'd be really worth it to do the backup-init lock proposed in
a thread reply here though..





More information about the pve-devel mailing list