提交 80dacadf 编写于 作者: M Marcos Paulo de Souza 提交者: Michal Privoznik

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: NMarcos Paulo de Souza <marcos.souza.org@gmail.com>
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
上级 1c270a84
...@@ -1141,12 +1141,6 @@ phypConnectOpen(virConnectPtr conn, ...@@ -1141,12 +1141,6 @@ phypConnectOpen(virConnectPtr conn,
virCheckFlags(VIR_CONNECT_RO, VIR_DRV_OPEN_ERROR); 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) if (VIR_ALLOC(phyp_driver) < 0)
goto failure; goto failure;
...@@ -3760,6 +3754,7 @@ static virInterfaceDriver phypInterfaceDriver = { ...@@ -3760,6 +3754,7 @@ static virInterfaceDriver phypInterfaceDriver = {
}; };
static virConnectDriver phypConnectDriver = { static virConnectDriver phypConnectDriver = {
.remoteOnly = true,
.uriSchemes = (const char *[]){ "phyp", NULL }, .uriSchemes = (const char *[]){ "phyp", NULL },
.hypervisorDriver = &phypHypervisorDriver, .hypervisorDriver = &phypHypervisorDriver,
.interfaceDriver = &phypInterfaceDriver, .interfaceDriver = &phypInterfaceDriver,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册