]> xenbits.xensource.com Git - libvirt.git/commitdiff
phyp: Don't do a flags check in the storage driver
authorMatthias Bolte <matthias.bolte@googlemail.com>
Fri, 12 Nov 2010 12:58:16 +0000 (13:58 +0100)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Fri, 12 Nov 2010 13:02:04 +0000 (14:02 +0100)
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.

src/phyp/phyp_driver.c

index a685bd17de04ae53caa593ff1667783788692979..4c723a26b0d15763b9d178a7921ddfc6d62975e2 100644 (file)
@@ -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;