]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Allow virDomainGetMemoryParameters on read-only connections
authorMatthias Bolte <matthias.bolte@googlemail.com>
Sat, 6 Nov 2010 17:49:07 +0000 (18:49 +0100)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Mon, 8 Nov 2010 20:26:28 +0000 (21:26 +0100)
Also fix a typo in the documentation of the function.

src/libvirt.c

index aebd3bc325fe02e4e67047c7ee63c01ba1631f8b..2ffb2d93ff3eff1582fc1d07dd73948ad4614efd 100644 (file)
@@ -3096,7 +3096,7 @@ error:
  * }
  *
  * This function requires privileged access to the hypervisor. This function
- * expects the caller to allocate the @param
+ * expects the caller to allocate the @params.
  *
  * Returns -1 in case of error, 0 in case of success.
  */
@@ -3115,10 +3115,6 @@ virDomainGetMemoryParameters(virDomainPtr domain,
         virDispatchError(NULL);
         return -1;
     }
-    if (domain->conn->flags & VIR_CONNECT_RO) {
-        virLibDomainError(domain, VIR_ERR_OPERATION_DENIED, __FUNCTION__);
-        goto error;
-    }
     if ((nparams == NULL) || (*nparams < 0)) {
         virLibDomainError(domain, VIR_ERR_INVALID_ARG, __FUNCTION__);
         goto error;