]> xenbits.xensource.com Git - libvirt.git/commit
Add support for RAM filesystems for LXC
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 8 May 2012 16:50:48 +0000 (17:50 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 25 Jun 2012 09:17:56 +0000 (10:17 +0100)
commit76b644c36253833cdbcf219ea066d206808ee89b
tree6e16100b2012ef272bd29c620a8c3df77dcd6cd9
parent9c77bf04b03ff026bb37212a195070d8983f530d
Add support for RAM filesystems for LXC

Introduce a new syntax for filesystems to allow use of a RAM
filesystem

   <filesystem type='ram'>
      <source usage='10' units='MiB'/>
      <target dir='/mnt'/>
   </filesystem>

The usage units default to KiB to limit consumption of host memory.

* docs/formatdomain.html.in: Document new syntax
* docs/schemas/domaincommon.rng: Add new attributes
* src/conf/domain_conf.c: Parsing/formatting of RAM filesystems
* src/lxc/lxc_container.c: Mounting of RAM filesystems

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/lxc/lxc_container.c