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


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to