mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
phyp: Don't do a flags check in the storage driver
This makes the storage driver fail when the connection is opened with the VIR_CONNECT_RO flag, resulting in a read-only connection with no storage driver.
This commit is contained in:
parent
f6d9a3e208
commit
d941eb13e4
@ -3927,10 +3927,8 @@ phypDomainSetCPU(virDomainPtr dom, unsigned int nvcpus)
|
||||
static virDrvOpenStatus
|
||||
phypVIOSDriverOpen(virConnectPtr conn,
|
||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||
int flags)
|
||||
int flags ATTRIBUTE_UNUSED)
|
||||
{
|
||||
virCheckFlags(0, VIR_DRV_OPEN_ERROR);
|
||||
|
||||
if (conn->driver->no != VIR_DRV_PHYP)
|
||||
return VIR_DRV_OPEN_DECLINED;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user