From 2715f9597082ad21931f662b630478b8299d385f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Fri, 23 Mar 2018 11:12:16 +0100 Subject: [PATCH] qemu-img convert: use cache=none MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit this fixes an issue with zvols, which require cache=none and eat up all free memory as buffered pages otherwise https://github.com/zfsonlinux/zfs/issues/7235 Signed-off-by: Fabian Grünbichler Signed-off-by: Thomas Lamprecht --- PVE/QemuServer.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 061effa..91a2bfc 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -6146,6 +6146,7 @@ sub qemu_img_convert { my $cmd = []; push @$cmd, '/usr/bin/qemu-img', 'convert', '-p', '-n'; push @$cmd, '-s', $snapname if($snapname && $src_format eq "qcow2"); + push @$cmd, '-t', 'none', '-T', 'none'; push @$cmd, '-f', $src_format, '-O', $dst_format, $src_path; if ($is_zero_initialized) { push @$cmd, "zeroinit:$dst_path"; -- 2.39.2