]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/test/test-cgroup-util.c
shared: Drop 'name=' prefix from SYSTEMD_CGROUP_CONTROLLER define. 6/head
authorDimitri John Ledkov <dimitri.j.ledkov@intel.com>
Mon, 1 Jun 2015 11:46:52 +0000 (12:46 +0100)
committerDimitri John Ledkov <dimitri.j.ledkov@intel.com>
Tue, 2 Jun 2015 10:25:52 +0000 (11:25 +0100)
commit185a08745957cbd32e8293daf8c51ab9c995a71e
tree182b8fe7d51a34fbbc34870f1312c7f2eb136784
parent80979f1ce4dadf797a42e85a97dc10960c1f6509
shared: Drop 'name=' prefix from SYSTEMD_CGROUP_CONTROLLER define.

In cgtop,mount-setup,nspawn the name= prefix is hard-coded in the
mount options, and the define is not used.

Everywhere else, we explicitly white-list allow 'name=' prefix to be
used with all controllers, and strip it out to 'normalise' the
controller name. That work is mostly inflicted on us due to 'name='
prefix in the define. Dropping this prefix makes everything more sane
overall.
src/shared/cgroup-util.c
src/shared/cgroup-util.h
src/shared/def.h
src/test/test-cgroup-util.c