beth kon wrote:
Patch for accessing available memory.
--- libvirt.danielpatch/src/driver.h 2007-09-11 15:29:43.000000000
-0400
+++ libvirt.cellsMemory/src/driver.h 2007-09-27 18:39:52.000000000
-0400
@@ -258,8 +258,9 @@ typedef virDriver *virDriverPtr;
typedef int
(*virDrvNodeGetCellsFreeMemory)
(virConnectPtr conn,
- unsigned long *freeMems,
- int nbCells);
+ long long *freeMems,
This needs to be declared unsigned long long. If you configure with
--enable-compile-warnings=error then the compiler will catch these
sorts of errors.
--- libvirt.danielpatch/src/xend_internal.c 2007-09-10
17:35:39.000000000 -0400
+++ libvirt.cellsMemory/src/xend_internal.c 2007-09-27
18:39:52.000000000 -0400
@@ -1954,6 +1954,8 @@ xenDaemonOpen(virConnectPtr conn, const
{
xmlURIPtr uri = NULL;
int ret;
+
+ virNodeInfo nodeInfo;
This variable is never used.