]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgroup: Make empty assignments reset to default
authorMichal Koutný <mkoutny@suse.com>
Tue, 4 Feb 2020 13:50:51 +0000 (14:50 +0100)
committerMichal Koutný <mkoutny@suse.com>
Tue, 2 Jun 2020 16:59:47 +0000 (18:59 +0200)
commitdb2b8d2e2895010f3443a589c9c1f1dfb25256a6
tree82c28243e30fb96ac0d26e6d6e2d741573e7c58c
parent21c8397694bd62fa0bc25d92a6508ae7a74e6156
cgroup: Make empty assignments reset to default

When MemoryLow= or MemoryMin= is set, it is interpretted as setting the
values to infinity. This is inconsistent with the default initialization
to 0.
It'd be nice to interpret the empty assignment as fallback to
DefaultMemory* of parent slice, however, current DBus API cannot convey
such a NULL value, so stick to simply interpretting that as hard-wired
default.
src/core/load-fragment.c
src/shared/bus-unit-util.c