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

Stefan Priebe - Profihost AG s.priebe at profihost.ag
Fri Apr 19 08:54:01 CEST 2013


OK

Am 19.04.2013 08:52, schrieb Alexandre DERUMIER:
> 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}; 
> } 
> 



More information about the pve-devel mailing list