]> git.proxmox.com Git - qemu-server.git/commitdiff
Fix freeze_needed
authorWolfgang Link <w.link@proxmox.com>
Mon, 31 Jul 2017 06:13:27 +0000 (08:13 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 31 Jul 2017 06:28:48 +0000 (08:28 +0200)
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

index e327482dc471004707c5408c5f078959d23ae064..e2fa2babead4e54077176d64d5de27b905cafdbf 100644 (file)
@@ -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);