allow sparse restore for sheepdog and rbd

This commit is contained in:
Dietmar Maurer 2013-04-18 06:14:50 +02:00
parent e061bcce22
commit 013d52755f

View File

@ -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;
}