5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-12 09:17:58 +03:00

qemu_img_format : use raw for as default for other storage (nexenta, sheepdog, ...)

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@odiso.com>
This commit is contained in:
Alexandre Derumier 2013-05-23 11:11:59 +02:00 committed by Dietmar Maurer
parent 12c6aafb2c
commit e9cfd9cb01

View File

@ -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};
}
}