]> git.proxmox.com Git - qemu-server.git/commitdiff
speedup restore on glusterfs (do not write zero bytes)
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 17 Sep 2013 07:12:07 +0000 (09:12 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 17 Sep 2013 07:12:07 +0000 (09:12 +0200)
PVE/QemuServer.pm

index 4d90484ee163d2645adb46e5db267294440db2eb..f91325c26480369338c5c4ea1a786cb75f83dbad 100644 (file)
@@ -3992,7 +3992,7 @@ 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 'glusterfs' ||
                $scfg->{type} eq 'sheepdog' || $scfg->{type} eq 'rbd') {
                $write_zeros = 0;
            }