[lxc-devel] [lxc/lxc] 4fb3cb: split cgroup handling into discrete backends

GitHub noreply at github.com
Thu Feb 6 16:46:27 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 4fb3cba5bc6b256b774e780f2bbf47b1dbcc0ce9
      https://github.com/lxc/lxc/commit/4fb3cba5bc6b256b774e780f2bbf47b1dbcc0ce9
  Author: Dwight Engen <dwight.engen at oracle.com>
  Date:   2014-02-06 (Thu, 06 Feb 2014)

  Changed paths:
    M src/lxc/Makefile.am
    M src/lxc/attach.c
    M src/lxc/cgfs.c
    M src/lxc/cgmanager.c
    A src/lxc/cgroup.c
    M src/lxc/cgroup.h
    M src/lxc/commands.c
    M src/lxc/conf.c
    M src/lxc/freezer.c
    M src/lxc/lxc.h
    M src/lxc/lxcutmp.c
    M src/lxc/start.h
    M src/lxc/state.c
    M src/tests/cgpath.c

  Log Message:
  -----------
  split cgroup handling into discrete backends

- refactor cgroup into two backends, the classic cgfs driver and the new
  cgmanager. Instead of lxc_handler knowing about the internals of each,
  have it just store an opaque pointer to a struct that is private to
  each backend.

- rename a couple of cgroup functions for consistency: those that are
  considered an API (ie. exported by lxc.h) begin with lxc_ and those that
  are not are just cgroup_*

- made as many backend routines static as possible, only cg*_ops_init is
  exported

- made a nrtasks op which is needed by the utmp code for monitoring
  container shutdown, currently only implemented for the cgfs backend

Signed-off-by: Dwight Engen <dwight.engen at oracle.com>
Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>




More information about the lxc-devel mailing list