From: Matthias Bolte Date: Fri, 12 Nov 2010 12:58:16 +0000 (+0100) Subject: phyp: Don't do a flags check in the storage driver X-Git-Tag: v0.8.6~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d941eb13e4b30ba057b1ab50c691993b963f6712;p=thirdparty%2Flibvirt.git 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. --- diff --git a/src/phyp/phyp_driver.c b/src/phyp/phyp_driver.c index a685bd17de..4c723a26b0 100644 --- a/src/phyp/phyp_driver.c +++ b/src/phyp/phyp_driver.c @@ -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;