mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 07:05:28 +00:00
qemu: Support <disk device='lun'> for iSCSI direct mapped volumes
Commit c820fbff9f
added support for iSCSI
disk as backing for <disk device='lun'>. We would not use it for a disk
type="volume" with direct access mode which basically maps to direct
iSCSI usage. Fix it by adding the storage source type accessor that
resolves the volume type.
This commit is contained in:
parent
5e9d56f83f
commit
82ba41108a
@ -971,7 +971,8 @@ qemuCheckDiskConfig(virDomainDiskDefPtr disk)
|
|||||||
virDomainDiskQEMUBusTypeToString(disk->bus));
|
virDomainDiskQEMUBusTypeToString(disk->bus));
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
if (disk->src->type == VIR_STORAGE_TYPE_NETWORK) {
|
|
||||||
|
if (virStorageSourceGetActualType(disk->src) == VIR_STORAGE_TYPE_NETWORK) {
|
||||||
if (disk->src->protocol != VIR_STORAGE_NET_PROTOCOL_ISCSI) {
|
if (disk->src->protocol != VIR_STORAGE_NET_PROTOCOL_ISCSI) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("disk device='lun' is not supported "
|
_("disk device='lun' is not supported "
|
||||||
|
Loading…
Reference in New Issue
Block a user