[pve-devel] applied: [PATCH qemu-server v2 1/1] add lock to vm status

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Mar 21 13:00:23 CET 2019


On 3/21/19 10:55 AM, Dominik Csapak wrote:
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
>  PVE/QemuServer.pm | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
> index 580c432..85f4ab3 100644
> --- a/PVE/QemuServer.pm
> +++ b/PVE/QemuServer.pm
> @@ -3065,6 +3065,11 @@ our $vmstatus_return_properties = {
>  	type => 'number',
>  	optional => 1,
>      },
> +    lock => {
> +	description => "The current lock, if any.",
> +	type => 'string',
> +	optional => 1,
> +    }
>  };
>  
>  my $last_proc_pid_stat;
> @@ -3135,6 +3140,7 @@ sub vmstatus {
>          $d->{template} = PVE::QemuConfig->is_template($conf);
>  
>  	$d->{serial} = 1 if conf_has_serial($conf);
> +	$d->{lock} = $conf->{lock} if $conf->{lock};
>  
>  	$res->{$vmid} = $d;
>      }
> 

applied, thanks!




More information about the pve-devel mailing list