[lxc-devel] [lxc/lxc] a900cb: introduce lxc.cgroup.dir.{monitor, container, contai...

Christian Brauner noreply at github.com
Fri Apr 3 18:26:04 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: a900cbaf257c6a7ee9aa73b09c6d3397581d38fb
      https://github.com/lxc/lxc/commit/a900cbaf257c6a7ee9aa73b09c6d3397581d38fb
  Author: Wolfgang Bumiller <w.bumiller at proxmox.com>
  Date:   2020-04-03 (Fri, 03 Apr 2020)

  Changed paths:
    M doc/lxc.container.conf.sgml.in
    M src/lxc/cgroups/cgfsng.c
    M src/lxc/cgroups/cgroup.h
    M src/lxc/commands.c
    M src/lxc/commands.h
    M src/lxc/conf.c
    M src/lxc/conf.h
    M src/lxc/confile.c
    M src/lxc/criu.c

  Log Message:
  -----------
  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 at proxmox.com>


  Commit: 31691d1bd42fa1691fa98df3e7d1a287f729820d
      https://github.com/lxc/lxc/commit/31691d1bd42fa1691fa98df3e7d1a287f729820d
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2020-04-03 (Fri, 03 Apr 2020)

  Changed paths:
    M src/lxc/cgroups/cgfsng.c

  Log Message:
  -----------
  cgroups: remove unused variable

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: 51b07b7036c2619e352d81f6c13512399fecf0f6
      https://github.com/lxc/lxc/commit/51b07b7036c2619e352d81f6c13512399fecf0f6
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2020-04-03 (Fri, 03 Apr 2020)

  Changed paths:
    M doc/lxc.container.conf.sgml.in

  Log Message:
  -----------
  doc: s/lxc.cgroup.container.namespace/lxc.cgroup.container.inner/g

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: e93197e7ec5ed908fcffc126b54c3092a746a6e7
      https://github.com/lxc/lxc/commit/e93197e7ec5ed908fcffc126b54c3092a746a6e7
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2020-04-03 (Fri, 03 Apr 2020)

  Changed paths:
    M src/lxc/confile.c

  Log Message:
  -----------
  confile: coding style fixes for set_config_cgroup_container_inner_dir()

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: a6e56873785f7f3487f11758bdbdebacffb1b5b9
      https://github.com/lxc/lxc/commit/a6e56873785f7f3487f11758bdbdebacffb1b5b9
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2020-04-03 (Fri, 03 Apr 2020)

  Changed paths:
    M doc/lxc.container.conf.sgml.in
    M src/lxc/cgroups/cgfsng.c
    M src/lxc/cgroups/cgroup.h
    M src/lxc/commands.c
    M src/lxc/commands.h
    M src/lxc/conf.c
    M src/lxc/conf.h
    M src/lxc/confile.c
    M src/lxc/criu.c

  Log Message:
  -----------
  Merge pull request #3353 from Blub/lxc.cgroup.dir-components

 introduce lxc.cgroup.dir.{monitor,container,container.inner}


Compare: https://github.com/lxc/lxc/compare/514b0270ceae...a6e56873785f


More information about the lxc-devel mailing list