• D
    Allow use of block devices for guest filesystem · 77791dc0
    Daniel P. Berrange 提交于
    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
    77791dc0
lxc_container.c 33.9 KB