mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-13 17:38:38 +00:00
qemu-img convert: use cache=none for ZFS only
since this requires O_DIRECT support by the underlying storage, which might not be available. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
2715f95970
commit
d494009179
@ -6146,7 +6146,8 @@ 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, '-t', 'none' if $dst_scfg->{type} eq 'zfspool';
|
||||
push @$cmd, '-T', 'none' if $src_scfg->{type} eq 'zfspool';
|
||||
push @$cmd, '-f', $src_format, '-O', $dst_format, $src_path;
|
||||
if ($is_zero_initialized) {
|
||||
push @$cmd, "zeroinit:$dst_path";
|
||||
|
Loading…
Reference in New Issue
Block a user