[pve-devel] applied: [PATCH qemu-server] Move name argument to improve visibility in a process list

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Mar 12 16:12:46 CET 2018


applied

On 3/12/18 1:28 PM, Herman van Rink wrote:
> From: Herman van Rink <rink at initfour.nl>
> 
> Signed-off-by: Herman van Rink <rink at initfour.nl>
> ---
>  PVE/QemuServer.pm | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
> index 628ca33..abd0713 100644
> --- a/PVE/QemuServer.pm
> +++ b/PVE/QemuServer.pm
> @@ -3093,6 +3093,10 @@ sub config_to_command {
>  
>      push @$cmd, '-id', $vmid;
>  
> +    my $vmname = $conf->{name} || "vm$vmid";
> +
> +    push @$cmd, '-name', $vmname;
> +
>      my $use_virtio = 0;
>  
>      my $qmpsocket = qmp_socket($vmid);
> @@ -3249,9 +3253,6 @@ sub config_to_command {
>  	}
>      }
>  
> -    my $vmname = $conf->{name} || "vm$vmid";
> -
> -    push @$cmd, '-name', $vmname;
>  
>      my $sockets = 1;
>      $sockets = $conf->{smp} if $conf->{smp}; # old style - no longer iused
> 





More information about the pve-devel mailing list