]> git.proxmox.com Git - mirror_lxc.git/commit
introduce lxc.cgroup.dir.{monitor,container,container.inner}
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 2 Apr 2020 08:01:37 +0000 (10:01 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 3 Apr 2020 15:22:04 +0000 (17:22 +0200)
commita900cbaf257c6a7ee9aa73b09c6d3397581d38fb
treebec8329a97d05a0e35fae651dc3ddeee42fbac27
parent514b0270ceae448e8e8ced95c69ae83c0619b4cf
introduce lxc.cgroup.dir.{monitor,container,container.inner}

This is a new approach to #1302 with a container-side
configuration instead of a global boolean flag.

Contrary to the previous PR using an optional additional
parameter for the get-cgroup command, this introduces two
new additional commands to get the limiting cgroup path and
cgroup2 file descriptor. If the limiting option is not in
use, these behave identical to their full-path counterparts.

If these variables are used the payload will end up in the
concatenation of lxc.cgroup.dir.container and
lxc.cgroup.dir.container.inner (which may be empty), and the
monitor will end up in lxc.cgruop.dir.monitor. The
directories are fixed, no retry count logic is applied,
failing to create these directories will simply be a hard
error.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
doc/lxc.container.conf.sgml.in
src/lxc/cgroups/cgfsng.c
src/lxc/cgroups/cgroup.h
src/lxc/commands.c
src/lxc/commands.h
src/lxc/conf.c
src/lxc/conf.h
src/lxc/confile.c
src/lxc/criu.c