]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/test/test-cgroup-util.c
nspawn: introduce the new /machine/ tree in the cgroup tree and move containers there
authorLennart Poettering <lennart@poettering.net>
Tue, 16 Apr 2013 02:36:06 +0000 (04:36 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 16 Apr 2013 02:41:21 +0000 (04:41 +0200)
commit7027ff61a34a12487712b382a061c654acc3a679
tree05e9374a566d6accdd962dd4dc6d7076b9304122
parentcec4ead904978b07db2154c618eeb48d3102da66
nspawn: introduce the new /machine/ tree in the cgroup tree and move containers there

Containers will now carry a label (normally derived from the root
directory name, but configurable by the user), and the container's root
cgroup is /machine/<label>. This label is called "machine name", and can
cover both containers and VMs (as soon as libvirt also makes use of
/machine/).

libsystemd-login can be used to query the machine name from a process.

This patch also includes numerous clean-ups for the cgroup code.
20 files changed:
man/sd_pid_get_session.xml
man/systemd-nspawn.xml
src/cgls/cgls.c
src/core/cgroup.c
src/core/dbus-unit.c
src/journal/journald-server.c
src/login/libsystemd-login.sym
src/login/logind-dbus.c
src/login/logind-session.c
src/login/logind.c
src/login/sd-login.c
src/nspawn/nspawn.c
src/shared/cgroup-label.c
src/shared/cgroup-show.c
src/shared/cgroup-util.c
src/shared/cgroup-util.h
src/systemd/sd-login.h
src/test/test-cgroup-util.c
src/test/test-cgroup.c
src/udev/udevd.c