提交 82ba4110 编写于 作者: P Peter Krempa

qemu: Support <disk device='lun'> for iSCSI direct mapped volumes

Commit c820fbff 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.
上级 5e9d56f8
......@@ -971,7 +971,8 @@ qemuCheckDiskConfig(virDomainDiskDefPtr disk)
virDomainDiskQEMUBusTypeToString(disk->bus));
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) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
_("disk device='lun' is not supported "
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册