[lxc-devel] [lxc/lxc] ccb4ca: cgfsng: next generation filesystem-backed cgroup i...

GitHub noreply at github.com
Mon Mar 7 21:24:46 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: ccb4cabe02e42e37faf7d3da089393777abe8ab1
      https://github.com/lxc/lxc/commit/ccb4cabe02e42e37faf7d3da089393777abe8ab1
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2016-03-04 (Fri, 04 Mar 2016)

  Changed paths:
    M src/lxc/Makefile.am
    M src/lxc/cgfs.c
    A src/lxc/cgfsng.c
    M src/lxc/cgmanager.c
    M src/lxc/cgroup.c
    M src/lxc/cgroup.h
    M src/lxc/criu.c
    M src/lxc/criu.h
    M src/lxc/utils.c
    M src/lxc/utils.h

  Log Message:
  -----------
  cgfsng: next generation filesystem-backed cgroup implementation

This makes simplifying assumptions:  all usable cgroups must be
mounted under /sys/fs/cgroup/controller or /sys/fs/cgroup/contr1,contr2.

Currently this will only work with cgroup namespaces, because
lxc.mount.auto = cgroup is not implemented.  So cgfsng_ops_init()
returns NULL if cgroup namespaces are not enabled.

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>


  Commit: 235f1815ab8e08b9b81f59c27ec3146fc5c26c0a
      https://github.com/lxc/lxc/commit/235f1815ab8e08b9b81f59c27ec3146fc5c26c0a
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2016-03-05 (Sat, 05 Mar 2016)

  Changed paths:
    M src/lxc/cgfsng.c

  Log Message:
  -----------
  use strchr in place of index bc bionic

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>


  Commit: 95adfe93164f8861f039e3a36404d5c78c99e19e
      https://github.com/lxc/lxc/commit/95adfe93164f8861f039e3a36404d5c78c99e19e
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2016-03-05 (Sat, 05 Mar 2016)

  Changed paths:
    M src/lxc/cgfsng.c

  Log Message:
  -----------
  cgfsng: print error when reaching 1000 failed cgroup creations

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>


  Commit: c0888dfe260a236c435748dbf6e562bfcc842e50
      https://github.com/lxc/lxc/commit/c0888dfe260a236c435748dbf6e562bfcc842e50
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2016-03-06 (Sun, 06 Mar 2016)

  Changed paths:
    M src/lxc/cgfsng.c

  Log Message:
  -----------
  chmod container cgroup 775

so that container root can create sub-cgroups

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>


  Commit: d30ec4cbc2dd7e9203661527673cdb773b255058
      https://github.com/lxc/lxc/commit/d30ec4cbc2dd7e9203661527673cdb773b255058
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2016-03-07 (Mon, 07 Mar 2016)

  Changed paths:
    M src/lxc/cgfsng.c

  Log Message:
  -----------
  comment fixups

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>


  Commit: aca7dc6feccdeeb519063ede4bd241ee86576c4c
      https://github.com/lxc/lxc/commit/aca7dc6feccdeeb519063ede4bd241ee86576c4c
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2016-03-07 (Mon, 07 Mar 2016)

  Changed paths:
    M src/lxc/cgfsng.c

  Log Message:
  -----------
  cgfsng - remove the code checking whether devices cgroup lines are already done

We may need to revert this, but I *think* we no longer need this
with default configs.  The idea iirc was that if caller cannot
write to devices.allow (i.e. is in a user namespace), then ignore
permission failures if the cgroups are already sufficiently setup.

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>


  Commit: 41c33dbec5d27182b80c59aa3ed0fbcc1df7216b
      https://github.com/lxc/lxc/commit/41c33dbec5d27182b80c59aa3ed0fbcc1df7216b
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2016-03-07 (Mon, 07 Mar 2016)

  Changed paths:
    M src/lxc/cgfsng.c

  Log Message:
  -----------
  cgfsng: print debuginfo if LXC_DEBUG_CGFSNG env variable is set

Note this is printing to stdout because it runs before logging is setup.

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>


  Commit: 43647298b687ca2e0cd43dcc2c972014231024fd
      https://github.com/lxc/lxc/commit/43647298b687ca2e0cd43dcc2c972014231024fd
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2016-03-07 (Mon, 07 Mar 2016)

  Changed paths:
    M src/lxc/cgfsng.c

  Log Message:
  -----------
  cgfsng: try to chown tasks and cgroup.procs

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>


  Commit: 47ee660e4604eaf6ea0125629b5ba4a973fbc547
      https://github.com/lxc/lxc/commit/47ee660e4604eaf6ea0125629b5ba4a973fbc547
  Author: Stéphane Graber <stgraber at stgraber.org>
  Date:   2016-03-07 (Mon, 07 Mar 2016)

  Changed paths:
    M src/lxc/Makefile.am
    M src/lxc/cgfs.c
    A src/lxc/cgfsng.c
    M src/lxc/cgmanager.c
    M src/lxc/cgroup.c
    M src/lxc/cgroup.h
    M src/lxc/criu.c
    M src/lxc/criu.h
    M src/lxc/utils.c
    M src/lxc/utils.h

  Log Message:
  -----------
  Merge pull request #875 from hallyn/cgfsng

cgfsng: next generation filesystem-backed cgroup implementation


Compare: https://github.com/lxc/lxc/compare/554cd166d2fa...47ee660e4604


More information about the lxc-devel mailing list