[pve-devel] [PATCH] rbd is format raw for qemu-img

Stefan Priebe s.priebe at profihost.ag
Fri Apr 19 08:35:49 CEST 2013


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



More information about the pve-devel mailing list