Fix freeze_needed

We want freeze the filesystem if the vmstate is not saved, because when we save the state we need not to freeze the filesystem.
This commit is contained in:
Wolfgang Link 2017-07-31 08:13:27 +02:00 committed by Fabian Grünbichler
parent 6956993e87
commit 278e2c9dd6

View 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);