From 81e6a22192c9b160b984b2a2a7f1d8e3a12b0429 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Fri, 17 Apr 2009 15:34:53 +0000 Subject: [PATCH] Small doc fixes * src/libvirt.c: fix the doc of virNodeGetFreeMemory to say bytes * docs/drvlxc.html.in docs/drvlxc.html: fix command used in examples daniel --- ChangeLog | 5 +++++ docs/drvlxc.html | 6 +++--- docs/drvlxc.html.in | 6 +++--- src/libvirt.c | 4 +++- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 96ac44ac8c..2d0646b710 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Apr 17 17:32:16 CEST 2009 Daniel Veillard + + * src/libvirt.c: fix the doc of virNodeGetFreeMemory to say bytes + * docs/drvlxc.html.in docs/drvlxc.html: fix command used in examples + Thu Apr 16 17:48:30 CEST 2009 Guido Günther * src/qemu_driver.c (qemudMonitorCommandExtra): don't log monitor diff --git a/docs/drvlxc.html b/docs/drvlxc.html index e76a1e7274..0d953fc79f 100644 --- a/docs/drvlxc.html +++ b/docs/drvlxc.html @@ -192,11 +192,11 @@ debootstrap, whatever) under /opt/vm-1-root:

In both cases, you can define and start a container using:

-lxc --connect lxc:/// define v1.xml
-lxc --connect lxc:/// start v1.xml
+virsh --connect lxc:/// define v1.xml
+virsh --connect lxc:/// start v1.xml
 
-lxc --connect lxc:/// console v1
+virsh --connect lxc:/// console v1
 

Now doing 'ps -ef' will only show processes in the container, for instance. diff --git a/docs/drvlxc.html.in b/docs/drvlxc.html.in index a930f2281a..6ba36fedde 100644 --- a/docs/drvlxc.html.in +++ b/docs/drvlxc.html.in @@ -70,12 +70,12 @@ debootstrap, whatever) under /opt/vm-1-root:

In both cases, you can define and start a container using:

-lxc --connect lxc:/// define v1.xml
-lxc --connect lxc:/// start v1.xml
+virsh --connect lxc:/// define v1.xml
+virsh --connect lxc:/// start v1.xml
 
and then get a console using:
-lxc --connect lxc:/// console v1
+virsh --connect lxc:/// console v1
 

Now doing 'ps -ef' will only show processes in the container, for instance. diff --git a/src/libvirt.c b/src/libvirt.c index d6de773028..d018991c7f 100644 --- a/src/libvirt.c +++ b/src/libvirt.c @@ -3158,8 +3158,10 @@ error: * @conn: pointer to the hypervisor connection * * provides the free memory available on the Node + * Note: most libvirt APIs provide memory sizes in kilobytes, but in this + * function the returned value is in bytes. Divide by 1024 as necessary. * - * Returns the available free memory in kilobytes or 0 in case of error + * Returns the available free memory in bytes or 0 in case of error */ unsigned long long virNodeGetFreeMemory(virConnectPtr conn)