mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-02 16:35:30 +00:00
allow sparse restore for sheepdog and rbd
This commit is contained in:
parent
e061bcce22
commit
013d52755f
@ -3774,7 +3774,8 @@ sub restore_vma_archive {
|
||||
|
||||
my $write_zeros = 1;
|
||||
# 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 'sheepdog' || $scfg->{type} eq 'rbd') {
|
||||
$write_zeros = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user