[cgmanager-devel] [cgmanager/cgmanager] a7fa2c: sort the controller mounts

GitHub noreply at github.com
Wed Jul 2 21:01:50 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/cgmanager/cgmanager
  Commit: a7fa2c7ac9acc68657df8e6a703728b1fb43b697
      https://github.com/cgmanager/cgmanager/commit/a7fa2c7ac9acc68657df8e6a703728b1fb43b697
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-07-02 (Wed, 02 Jul 2014)

  Changed paths:
    M fs.c

  Log Message:
  -----------
  sort the controller mounts

Keep the all_mounts array sorted.

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


  Commit: 6c077fbbea4c2168b5a3ad133ae02d25314774da
      https://github.com/cgmanager/cgmanager/commit/6c077fbbea4c2168b5a3ad133ae02d25314774da
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-07-02 (Wed, 02 Jul 2014)

  Changed paths:
    M cgmanager.c
    M fs.c
    M fs.h
    M tests/test21.sh

  Log Message:
  -----------
  handle pre-mounted and co-mounted subsystems

Before we try to mount cgroups, record which were already premounted.
Also record which were co-mounted.

For any pre-mounted cgroups, assume that they are managed by someone
else (like systemd) and do not set a release agent.

Skip remove-on-empty test if pre-mounted

remove_on_empty: refuse to run on pre-mounted controllers

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


  Commit: 2fc61bd3c0896054f2aae3b3b485452ecd0b951a
      https://github.com/cgmanager/cgmanager/commit/2fc61bd3c0896054f2aae3b3b485452ecd0b951a
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-07-02 (Wed, 02 Jul 2014)

  Changed paths:
    M cgmanager.c
    M fs.c
    M fs.h
    M org.linuxcontainers.cgmanager.xml

  Log Message:
  -----------
  introduce basic structure for multiple controller dbus requests

In some dbus requests, allow the controller field to be a single controller
(as before), "all", or a comma-separated list of controllers like
"cpu,cpuset".  If cpu and cpuset are co-mounted, the create will be done only
once.

The dbus requests allow multiple controllers are create, chown, chmod,
remove and movepid.

If more than one controller is specified, and any action fails because the
caller lacks permission, then the failure is ignored.  This is so that
the caller can do "create all xyz; movepid all xyz" to do so for all
hierarchies for which he is allowed to, without having to do extra work.
If there is a better default behavior, I'm open to suggestions.

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


  Commit: 491c8492d5999fca892099656221beaabab59dce
      https://github.com/cgmanager/cgmanager/commit/491c8492d5999fca892099656221beaabab59dce
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-07-02 (Wed, 02 Jul 2014)

  Changed paths:
    M frontend.h

  Log Message:
  -----------
  update api version

so userspace can detect whether cgmanager can handle multiple
controllers.

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


Compare: https://github.com/cgmanager/cgmanager/compare/ba8a62febf97...491c8492d599


More information about the cgmanager-devel mailing list