]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: replace slice dependencies as they get added
authorAnita Zhang <the.anitazha@gmail.com>
Tue, 9 Nov 2021 23:26:28 +0000 (15:26 -0800)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 10 Nov 2021 09:52:08 +0000 (10:52 +0100)
commit899acf5c2d4b89caa891d05ccfa4be828a999c2d
tree542704b65d167750da9a4d9e72616e22d947e16b
parent4d544a0c879a2f1a983cc5e6960c4a53fa565772
core: replace slice dependencies as they get added

Defines a "UNIT_DEPENDENCY_SLICE_PROPERTY" UnitDependencyMask type that
is used when adding slices to the dependencies hashmap. This type is
used to remove slice dependencies when they get overridden by new ones.

Fixes #20182
src/core/dbus-unit.c
src/core/load-fragment.c
src/core/unit-serialize.c
src/core/unit.c
src/core/unit.h
src/test/test-engine.c