mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-10 01:18:01 +03:00
qemu_img_format: use 'raw' for lvm
With host_device we get the following error: qemu-img: error while writing sector 0: Bad file descriptor
This commit is contained in:
parent
f6ab3bdbf9
commit
ccb5c001d6
@ -4560,18 +4560,15 @@ sub qemu_img_format {
|
||||
|
||||
if ($scfg->{path} && $volname =~ m/\.(raw|qcow2|qed|vmdk)$/) {
|
||||
return $1;
|
||||
}
|
||||
elsif ($scfg->{type} eq 'nexenta' || $scfg->{type} eq 'iscsidirect'){
|
||||
} elsif ($scfg->{type} eq 'nexenta' || $scfg->{type} eq 'iscsidirect') {
|
||||
return "iscsi";
|
||||
}
|
||||
elsif ($scfg->{type} eq 'lvm' || $scfg->{type} eq 'iscsi'){
|
||||
} elsif ($scfg->{type} eq 'iscsi') {
|
||||
return "host_device";
|
||||
}
|
||||
elsif ($scfg->{type} eq 'rbd'){
|
||||
} elsif ($scfg->{type} eq 'lvm') {
|
||||
return "raw";
|
||||
}
|
||||
#sheepdog other qemu block driver
|
||||
else{
|
||||
} elsif ($scfg->{type} eq 'rbd') {
|
||||
return "raw";
|
||||
} else { # sheepdog or other qemu block driver
|
||||
return $scfg->{type};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user