[pve-devel] [PATCH qemu-server] Fix freeze_needed

Wolfgang Link w.link at proxmox.com
Mon Jul 31 08:13:27 CEST 2017


We want freeze the filesystem if the vmstate is not saved, because when we save the state we need not to freeze the filesystem.
---
 PVE/QemuConfig.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/QemuConfig.pm b/PVE/QemuConfig.pm
index e327482..e2fa2ba 100644
--- a/PVE/QemuConfig.pm
+++ b/PVE/QemuConfig.pm
@@ -166,7 +166,7 @@ sub __snapshot_check_freeze_needed {
     my ($class, $vmid, $config, $save_vmstate) = @_;
 
     my $running = $class->__snapshot_check_running($vmid);
-    if ($save_vmstate) {
+    if (!$save_vmstate) {
 	return ($running, $running && $config->{agent} && PVE::QemuServer::qga_check_running($vmid));
     } else {
 	return ($running, 0);
-- 
2.11.0





More information about the pve-devel mailing list