]> xenbits.xensource.com Git - libvirt.git/commit
Allow use of block devices for guest filesystem
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 22 Jul 2011 12:02:51 +0000 (13:02 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 8 Aug 2011 10:38:05 +0000 (11:38 +0100)
commit77791dc0e162463f3d885ea6481d07bae29d2494
tree08e12972a2d2aebedbe848171935f168b7f376ac
parentb6bd2d3466faa102d474164084794b177a0bd824
Allow use of block devices for guest filesystem

Currently the LXC driver can only populate filesystems from
host filesystems, using bind mounts. This patch allows host
block devices to be mounted. It autodetects the filesystem
format at mount time, and adds the block device to the cgroups
ACL. Example usage is

    <filesystem type='block' accessmode='passthrough'>
      <source dev='/dev/sda1'/>
      <target dir='/home'/>
    </filesystem>

* src/lxc/lxc_container.c: Mount block device filesystems
* src/lxc/lxc_controller.c: Add block device filesystems
  to cgroups ACL
src/lxc/lxc_container.c
src/lxc/lxc_controller.c