libvirt/src/lxc
Daniel P. Berrange 5f5c6fde00 Allow use of file images for LXC container filesystems
A previous commit gave the LXC driver the ability to mount
block devices for the container filesystem. Through use of
the loopback device functionality, we can build on this to
support use of plain file images for LXC filesytems.

By setting the LO_FLAGS_AUTOCLEAR flag we can ensure that
the loop device automatically disappears when the container
dies / shuts down

* src/lxc/lxc_container.c: Raise error if we see a file
  based filesystem, since it should have been turned into
  a loopback device already
* src/lxc/lxc_controller.c: Rewrite any filesystems of
  type=file, into type=block, by binding the file image
  to a free loop device
2011-08-08 11:38:09 +01:00
..
libvirtd_lxc.aug LXC add augeas support for config file 2009-10-08 18:06:40 +02:00
lxc_conf.c libvirt,logging: cleanup VIR_XXX0() 2011-05-11 12:41:14 -06:00
lxc_conf.h lxc: Use virDomainEventState helpers 2011-05-13 10:48:32 -04:00
lxc_container.c Allow use of file images for LXC container filesystems 2011-08-08 11:38:09 +01:00
lxc_container.h lxc: controller: Improve container error reporting 2011-06-07 14:38:54 -04:00
lxc_controller.c Allow use of file images for LXC container filesystems 2011-08-08 11:38:09 +01:00
lxc_driver.c fdstream: drop delete argument 2011-08-02 14:53:43 -06:00
lxc_driver.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
lxc.conf LXC add driver config file lxc.conf 2009-10-08 17:40:14 +02:00
test_libvirtd_lxc.aug LXC add augeas support for config file 2009-10-08 18:06:40 +02:00
veth.c Fix allocation of veth's to not skip an index 2011-06-15 10:56:08 +01:00
veth.h lxc: avoid large stacks with veth creation 2010-09-02 15:48:24 -06:00