]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Do not prematurely close loop devices in LXC controller
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 15 Mar 2013 15:07:13 +0000 (15:07 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 19 Mar 2013 14:46:40 +0000 (14:46 +0000)
commit0a418355cc1ba704be67ae3c80fbfff0cfe71004
tree6dc938c412d3f107a880f61c71e4d4c997807e34
parent1760258cc396ad271ab6dd3342f3e7af7c722e00
Do not prematurely close loop devices in LXC controller

The LXC controller is closing loop devices as soon as the
container has started. This is fine if the loop device
was setup as a mounted filesystem, but if we're just passing
through the loop device as a disk, nothing else is keeping
it open. Thus we must keep the loop device FDs open for as
long the libvirt_lxc process is running.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/lxc/lxc_controller.c