[pve-devel] applied: [PATCH qemu-server v2 3/3] Import OVF: Lock config with "lock" property
Thomas Lamprecht
t.lamprecht at proxmox.com
Tue Oct 29 19:17:04 CET 2019
On 10/28/19 12:47 PM, Dominic Jäger wrote:
> Previously a VMID conflict was possible when creating a VM on another node
> between locking the config with lock_config_full and writing to it for the
> first time with write_config.
>
> Using create_and_lock_config eliminates this possibility. This means that now
> the "lock" property is set in the config instead of using flock only.
>
> $param was empty when it was assigned the three values "name", "memory" and
> "cores" before being assigned to $conf later on. Assigning those values
> directly to $conf avoids confusion about what the two variables contain.
>
> Signed-off-by: Dominic Jäger <d.jaeger at proxmox.com>
> ---
> v1->v2:
> - Add note about $param in commit message
> - Improve commit message, especially replacing "parameter lock" with "lock
> config"
> - Remove unnecessary semicolon in one-liner
> - Adapted error message
> - Use return early pattern
>
> PVE/CLI/qm.pm | 66 +++++++++++++++++++++++++--------------------------
> 1 file changed, 32 insertions(+), 34 deletions(-)
>
applied, thanks!
More information about the pve-devel
mailing list