mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-30 21:47:18 +00:00
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
This commit is contained in:
parent
d24f6aabbb
commit
81e6a22192
@ -1,3 +1,8 @@
|
|||||||
|
Fri Apr 17 17:32:16 CEST 2009 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
|
* 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 <agx@sigxcpu.org>
|
Thu Apr 16 17:48:30 CEST 2009 Guido Günther <agx@sigxcpu.org>
|
||||||
|
|
||||||
* src/qemu_driver.c (qemudMonitorCommandExtra): don't log monitor
|
* src/qemu_driver.c (qemudMonitorCommandExtra): don't log monitor
|
||||||
|
@ -192,11 +192,11 @@ debootstrap, whatever) under /opt/vm-1-root:
|
|||||||
<p>
|
<p>
|
||||||
In both cases, you can define and start a container using:</p>
|
In both cases, you can define and start a container using:</p>
|
||||||
<pre>
|
<pre>
|
||||||
lxc --connect lxc:/// define v1.xml
|
virsh --connect lxc:/// define v1.xml
|
||||||
lxc --connect lxc:/// start v1.xml
|
virsh --connect lxc:/// start v1.xml
|
||||||
</pre>
|
</pre>
|
||||||
<pre>
|
<pre>
|
||||||
lxc --connect lxc:/// console v1
|
virsh --connect lxc:/// console v1
|
||||||
</pre>
|
</pre>
|
||||||
<p>Now doing 'ps -ef' will only show processes in the container, for
|
<p>Now doing 'ps -ef' will only show processes in the container, for
|
||||||
instance.
|
instance.
|
||||||
|
@ -70,12 +70,12 @@ debootstrap, whatever) under /opt/vm-1-root:
|
|||||||
<p>
|
<p>
|
||||||
In both cases, you can define and start a container using:</p>
|
In both cases, you can define and start a container using:</p>
|
||||||
<pre>
|
<pre>
|
||||||
lxc --connect lxc:/// define v1.xml
|
virsh --connect lxc:/// define v1.xml
|
||||||
lxc --connect lxc:/// start v1.xml
|
virsh --connect lxc:/// start v1.xml
|
||||||
</pre>
|
</pre>
|
||||||
and then get a console using:
|
and then get a console using:
|
||||||
<pre>
|
<pre>
|
||||||
lxc --connect lxc:/// console v1
|
virsh --connect lxc:/// console v1
|
||||||
</pre>
|
</pre>
|
||||||
<p>Now doing 'ps -ef' will only show processes in the container, for
|
<p>Now doing 'ps -ef' will only show processes in the container, for
|
||||||
instance.
|
instance.
|
||||||
|
@ -3158,8 +3158,10 @@ error:
|
|||||||
* @conn: pointer to the hypervisor connection
|
* @conn: pointer to the hypervisor connection
|
||||||
*
|
*
|
||||||
* provides the free memory available on the Node
|
* 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
|
unsigned long long
|
||||||
virNodeGetFreeMemory(virConnectPtr conn)
|
virNodeGetFreeMemory(virConnectPtr conn)
|
||||||
|
Loading…
Reference in New Issue
Block a user