[pve-devel] [PATCH qemu-server v2 1/1] add lock to vm status
Dominik Csapak
d.csapak at proxmox.com
Thu Mar 21 10:55:18 CET 2019
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;
}
--
2.11.0
More information about the pve-devel
mailing list