[pve-devel] applied: [PATCH qemu-server] Fix freeze_needed
Fabian Grünbichler
f.gruenbichler at proxmox.com
Mon Jul 31 08:30:34 CEST 2017
On Mon, Jul 31, 2017 at 08:13:27AM +0200, Wolfgang Link wrote:
> 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 at pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
More information about the pve-devel
mailing list