[pve-devel] [PATCH qemu-server] restore: pass format to vma extract
Wolfgang Bumiller
w.bumiller at proxmox.com
Thu Apr 28 16:11:44 CEST 2016
This silences the "probing guessed raw" warnings of
'qmrestore'.
---
NOTE: This requires the following pve-qemu-kvm patch:
* Fix #932: passing BDRV_O_PROTOCOL breaks qcow2 on gluster
PVE/QemuServer.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 63f1e7d..82dbdea 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -5730,7 +5730,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;
--
2.1.4
More information about the pve-devel
mailing list