[pve-devel] [PATCH qemu-server 1/1] fix issue with disk migration from other frormats to sparse ZFS over iSCSI type
Dzmitry Kotsikau
dkotsikau at gmail.com
Thu May 3 14:51:29 CEST 2018
Signed-off-by: Dzmitry Kotsikau <dkotsikau at gmail.com>
---
PVE/QemuServer.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 015c725..f00510f 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -6147,6 +6147,7 @@ sub qemu_img_convert {
my $cmd = [];
push @$cmd, '/usr/bin/qemu-img', 'convert', '-p', '-n';
+ push @$cmd, '-S', '4096';
push @$cmd, '-s', $snapname if($snapname && $src_format eq "qcow2");
push @$cmd, '-t', 'none' if $dst_scfg->{type} eq 'zfspool';
push @$cmd, '-T', 'none' if $src_scfg->{type} eq 'zfspool';
--
2.11.0
More information about the pve-devel
mailing list