[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] Use correct error code in public VolCreateXML



The attached patch fixes a use of an incorrect error code in libvirt.c
VolCreateXML.

Thanks,
Cole
commit 5e8ccec77f742a7b749c1ef6b51fb20cbe345d65
Author: Cole Robinson <crobinso redhat com>
Date:   Wed Apr 29 09:39:13 2009 -0400

    Use proper error code in virStorageVolCreateXML

diff --git a/src/libvirt.c b/src/libvirt.c
index 90b4d90..ded18a7 100644
--- a/src/libvirt.c
+++ b/src/libvirt.c
@@ -6740,7 +6740,7 @@ virStorageVolCreateXML(virStoragePoolPtr pool,
     virResetLastError();
 
     if (!VIR_IS_STORAGE_POOL(pool)) {
-        virLibConnError(NULL, VIR_ERR_INVALID_STORAGE_VOL, __FUNCTION__);
+        virLibConnError(NULL, VIR_ERR_INVALID_STORAGE_POOL, __FUNCTION__);
         return (NULL);
     }
 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]