mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
phyp_driver: Set remoteOnly member of virConnectDriver
Phyp driver can't function without a server being informed, so this flag makes libvirt to check for a valid server before calling connectOpen. Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com> Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
1c270a84e7
commit
80dacadf8e
@ -1141,12 +1141,6 @@ phypConnectOpen(virConnectPtr conn,
|
||||
|
||||
virCheckFlags(VIR_CONNECT_RO, VIR_DRV_OPEN_ERROR);
|
||||
|
||||
if (conn->uri->server == NULL) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
"%s", _("Missing server name in phyp:// URI"));
|
||||
return VIR_DRV_OPEN_ERROR;
|
||||
}
|
||||
|
||||
if (VIR_ALLOC(phyp_driver) < 0)
|
||||
goto failure;
|
||||
|
||||
@ -3760,6 +3754,7 @@ static virInterfaceDriver phypInterfaceDriver = {
|
||||
};
|
||||
|
||||
static virConnectDriver phypConnectDriver = {
|
||||
.remoteOnly = true,
|
||||
.uriSchemes = (const char *[]){ "phyp", NULL },
|
||||
.hypervisorDriver = &phypHypervisorDriver,
|
||||
.interfaceDriver = &phypInterfaceDriver,
|
||||
|
Loading…
Reference in New Issue
Block a user