mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-04-01 20:05:19 +00:00
phyp: Prohibit fc_host adapter for phyp driver
It's possible to support fc_host adapter for phyp driver too, but at this stage I'd like to not allow it when I'm not that clear how it works.
This commit is contained in:
parent
6cf9a5bb90
commit
b78db1c365
@ -2506,6 +2506,13 @@ phypBuildStoragePool(virConnectPtr conn, virStoragePoolDefPtr def)
|
||||
int exit_status = 0;
|
||||
virBuffer buf = VIR_BUFFER_INITIALIZER;
|
||||
|
||||
if (source.adapter.type !=
|
||||
VIR_STORAGE_POOL_SOURCE_ADAPTER_TYPE_SCSI_HOST) {
|
||||
virReportError(VIR_ERR_XML_ERROR, "%s",
|
||||
_("Only 'scsi_host' adapter is supported"));
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (system_type == HMC)
|
||||
virBufferAsprintf(&buf, "viosvrcmd -m %s --id %d -c '",
|
||||
managed_system, vios_id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user