]> git.proxmox.com Git - qemu-server.git/commit
fix #2788: do not resume vms after backup if they were paused before
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 20 Jan 2021 12:32:04 +0000 (13:32 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 26 Jan 2021 17:41:11 +0000 (18:41 +0100)
commitb08c37c363d04b723de914e14e6a044e8b59d576
tree7b1a0fae1aa7e6ac8b9ef790a4c3167deae86f2e
parent99676a6c1a101e9aadf43d185bf61eb45d6e4411
fix #2788: do not resume vms after backup if they were paused before

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@proxmox.com>
Tested-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/API2/Qemu.pm
PVE/QemuServer.pm
PVE/VZDump/QemuServer.pm