[pve-devel] Restore from backup is not working properly

Michael Rasmussen mir at datanom.net
Sun Mar 16 16:23:00 CET 2014


On Sun, 16 Mar 2014 07:38:07 +0000
Dietmar Maurer <dietmar at proxmox.com> wrote:

> see write_zeroes at:
> 
> https://git.proxmox.com/?p=qemu-server.git;a=blob;f=PVE/QemuServer.pm;h=2093990a3245bf0071badf6f1fc264812c825bf1;hb=HEAD#l4113
> 
> restore need to know that the allocated file is initialized with zeroes.
> 
So if this part:
if ($scfg->{type} eq 'dir' || $scfg->{type} eq 'nfs' ||
    $scfg->{type} eq 'glusterfs' || $scfg->{type} eq 'sheepdog' ||
    $scfg->{type} eq 'rbd') {
    $write_zeros = 0;
}
is changed to:
if ($scfg->{type} eq 'dir' || $scfg->{type} eq 'nfs' ||
    $scfg->{type} eq 'glusterfs' || $scfg->{type} eq 'sheepdog' ||
    $scfg->{type} eq 'rbd' || $scfg->{type} eq 'zfs') {
    $write_zeros = 0;
}
then this should be fixed?

-- 
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------
/usr/games/fortune -es says:
My mother was a test tube; my father was a knife.
		-- Friday
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20140316/95adeb4b/attachment.sig>


More information about the pve-devel mailing list