[pve-devel] [PATCH] rbd is format raw for qemu-img
Alexandre DERUMIER
aderumier at odiso.com
Fri Apr 19 08:52:11 CEST 2013
I'll add it to my patches. (their are not yet in current proxmox git ;)
----- Mail original -----
De: "Stefan Priebe" <s.priebe at profihost.ag>
À: pve-devel at pve.proxmox.com
Envoyé: Vendredi 19 Avril 2013 08:35:49
Objet: [pve-devel] [PATCH] rbd is format raw for qemu-img
Signed-off-by: Stefan Priebe <s.priebe at profihost.ag>
---
PVE/QemuServer.pm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 03e5018..5347a5b 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -4542,7 +4542,10 @@ sub qemu_img_format {
elsif ($scfg->{type} eq 'lvm' || $scfg->{type} eq 'iscsi'){
return "host_device";
}
- #sheepdog,rbd,or other qemu block driver
+ elsif ($scfg->{type} eq 'rbd'){
+ return "raw";
+ }
+ #sheepdog,or other qemu block driver
else{
return $scfg->{type};
}
--
1.7.10.4
_______________________________________________
pve-devel mailing list
pve-devel at pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
More information about the pve-devel
mailing list