]> git.proxmox.com Git - qemu-server.git/commitdiff
restore: pass format to vma extract
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 28 Apr 2016 14:11:44 +0000 (16:11 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 29 Apr 2016 07:02:34 +0000 (09:02 +0200)
This silences the "probing guessed raw" warnings of
'qmrestore'.

PVE/QemuServer.pm

index 02a689c42b175f3e44e4eae36df7762fff673427..0e3a95e720d9b1d37a82db3af80a7f174591c499 100644 (file)
@@ -5576,7 +5576,7 @@ sub restore_vma_archive {
                $write_zeros = 0;
            }
 
-           print $fifofh "${write_zeros}:$d->{devname}=$path\n";
+           print $fifofh "format=$d->{format}:${write_zeros}:$d->{devname}=$path\n";
 
            print "map '$d->{devname}' to '$path' (write zeros = ${write_zeros})\n";
            $map->{$virtdev} = $volid;