]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc: properly clean up qemu-nbd
authorCédric Bosdonnat <cbosdonnat@suse.com>
Tue, 26 May 2015 16:29:27 +0000 (18:29 +0200)
committerCédric Bosdonnat <cbosdonnat@suse.com>
Tue, 16 Jun 2015 10:38:11 +0000 (12:38 +0200)
commit387cb8c6b2e684aae47c14a166851c299cc0a329
tree3aac4e98dd9f657e2a8cdba0b6c8349e8fee0d66
parente44b0269c92af35c6233b78cf1317fb4c6ae1925
lxc: properly clean up qemu-nbd

Add the qemu-nbd tasks to the container cgroup to make sure those will
be killed when the container is stopped. In order to reliably get the
qemu-nbd tasks PIDs, we use /sys/devices/virtual/block/<DEV>/pid as
qemu-nbd is daemonizing itself.
src/lxc/lxc_controller.c