mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-15 13:12:15 +00:00
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:
parent
6956993e87
commit
278e2c9dd6
@ -166,7 +166,7 @@ sub __snapshot_check_freeze_needed {
|
|||||||
my ($class, $vmid, $config, $save_vmstate) = @_;
|
my ($class, $vmid, $config, $save_vmstate) = @_;
|
||||||
|
|
||||||
my $running = $class->__snapshot_check_running($vmid);
|
my $running = $class->__snapshot_check_running($vmid);
|
||||||
if ($save_vmstate) {
|
if (!$save_vmstate) {
|
||||||
return ($running, $running && $config->{agent} && PVE::QemuServer::qga_check_running($vmid));
|
return ($running, $running && $config->{agent} && PVE::QemuServer::qga_check_running($vmid));
|
||||||
} else {
|
} else {
|
||||||
return ($running, 0);
|
return ($running, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user