[pve-devel] applied: [PATCH qemu-server v2 1/3] Remove vm_destroy

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Oct 29 19:13:26 CET 2019


On 10/28/19 12:47 PM, Dominic Jäger wrote:
> This function has been used in one place only into which we inlined its
> functionality. Removing it avoids confusion between vm_destroy and vm_destroy.
> 
> The whole $importfn is executed in a lock_config_full.
> As a consequence, for the inlined code:
> 1. lock_config is redundant
> 2. it is not possible that the VM has been started (check_running) in the
>     meanwhile
> Additionally, it is not possible that the "lock" property has been written into
> the VM's config file (check_lock) in the meanwhile
> 
> Add warning after eval so that it does not go unnoticed if it ever comes into
> action.
> 
> Signed-off-by: Dominic Jäger <d.jaeger at proxmox.com>
> ---
> v1->v2:
> - Adapt commit message
> - Keep $skiplock for readability
> - Squash 3/7 "Remove redundant locks" into here
> - Squash 5/7 "Remove useless eval" into here:
>      Actually the eval is not removed anymore but I added a warning instead
> 

applied, thanks, but used "replace remaining vm_destroy call-sites with destroy_vm"
as commit subject





More information about the pve-devel mailing list