mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-07-09 10:59:57 +00:00
speedup restore on glusterfs (do not write zero bytes)
This commit is contained in:
parent
2354a8bb10
commit
244f2577c5
@ -3992,7 +3992,7 @@ sub restore_vma_archive {
|
|||||||
|
|
||||||
my $write_zeros = 1;
|
my $write_zeros = 1;
|
||||||
# fixme: what other storages types initialize volumes with zero?
|
# fixme: what other storages types initialize volumes with zero?
|
||||||
if ($scfg->{type} eq 'dir' || $scfg->{type} eq 'nfs' ||
|
if ($scfg->{type} eq 'dir' || $scfg->{type} eq 'nfs' || $scfg->{type} eq 'glusterfs' ||
|
||||||
$scfg->{type} eq 'sheepdog' || $scfg->{type} eq 'rbd') {
|
$scfg->{type} eq 'sheepdog' || $scfg->{type} eq 'rbd') {
|
||||||
$write_zeros = 0;
|
$write_zeros = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user