[pve-devel] [PATCH] qemu_img_format : use raw for as default for other storage (nexenta, sheepdog, ...)
Alexandre Derumier
aderumier at odiso.com
Thu May 23 11:11:59 CEST 2013
Seem that something have change in qemu.
iscsi qemu block driver need to use raw, or we get a segfault. (like rbd).
sheepdog works also with .raw, so we don't need anymore specific storage format, we can use raw.
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/QemuServer.pm | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 5cf8b89..4f633e6 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -4549,16 +4549,10 @@ sub qemu_img_format {
if ($scfg->{path} && $volname =~ m/\.(raw|qcow2|qed|vmdk)$/) {
return $1;
- } elsif ($scfg->{type} eq 'nexenta' || $scfg->{type} eq 'iscsidirect') {
- return "iscsi";
} elsif ($scfg->{type} eq 'iscsi') {
return "host_device";
- } elsif ($scfg->{type} eq 'lvm') {
- return "raw";
- } elsif ($scfg->{type} eq 'rbd') {
+ } else {
return "raw";
- } else { # sheepdog or other qemu block driver
- return $scfg->{type};
}
}
--
1.7.10.4
More information about the pve-devel
mailing list