]> git.proxmox.com Git - qemu-server.git/commit - PVE/API2/Qemu.pm
api: allow to clear vmstate actively
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 30 Nov 2019 17:17:17 +0000 (18:17 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 30 Nov 2019 17:22:38 +0000 (18:22 +0100)
commit546644e23da41038b0aef10b20a0f45a23b32b8c
tree7a9ee56938172dd885dfa0aec5fca13ec31cfb36
parent6afb67947726771dec44f2753465e6188b06784c
api: allow to clear vmstate actively

Sometimes, a user wants to remove the 'suspended' state without
resuming the vm from that state. Since the vm is locked with
'suspended', this was not possible without help from root@pam

This patch allows to delete the vmstate and the suspended lock and
related config entries with it. The user still has to have the right
priviliges and the vm cannot be 'protected' for this to work

Inspired-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Qemu.pm