chiark / gitweb /
core: always create /user and /machine top-level cgroup dirs
authorLennart Poettering <lennart@poettering.net>
Mon, 15 Apr 2013 19:52:56 +0000 (21:52 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 15 Apr 2013 19:59:04 +0000 (21:59 +0200)
commita32360f1a5a85c12f00e9dfb7353280067cccb5b
treeb393c957350f0550922eafebaba44eab49e5d6a2
parenta53824ea7466bee2c5e6ac9a11b58b79adceb98b
core: always create /user and /machine top-level cgroup dirs

This allows clients to put inotify watches on these trees to watch for
state changes, without having to wait until these dirs are created.

This introduces the new top-level /machine cgroup dir as canonical
location where OS containers and VMs shall be located (as discussed with
the libvirt folks).
src/core/cgroup.c
src/login/logind-session.c
src/login/logind-user.c
src/shared/cgroup-label.c
src/shared/cgroup-util.h
src/test/test-cgroup.c