summaryrefslogtreecommitdiff
path: root/src/core/unit-serialize.c
diff options
context:
space:
mode:
authorAnita Zhang <the.anitazha@gmail.com>2021-11-09 15:26:28 -0800
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-11-10 10:52:08 +0100
commit899acf5c2d4b89caa891d05ccfa4be828a999c2d (patch)
tree542704b65d167750da9a4d9e72616e22d947e16b /src/core/unit-serialize.c
parent4d544a0c879a2f1a983cc5e6960c4a53fa565772 (diff)
downloadsystemd-899acf5c2d4b89caa891d05ccfa4be828a999c2d.tar.gz
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
Diffstat (limited to 'src/core/unit-serialize.c')
-rw-r--r--src/core/unit-serialize.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/unit-serialize.c b/src/core/unit-serialize.c
index 3458d7017b..7d2e6bc130 100644
--- a/src/core/unit-serialize.c
+++ b/src/core/unit-serialize.c
@@ -593,6 +593,7 @@ static void print_unit_dependency_mask(FILE *f, const char *kind, UnitDependency
{ UNIT_DEPENDENCY_MOUNTINFO_IMPLICIT, "mountinfo-implicit" },
{ UNIT_DEPENDENCY_MOUNTINFO_DEFAULT, "mountinfo-default" },
{ UNIT_DEPENDENCY_PROC_SWAP, "proc-swap" },
+ { UNIT_DEPENDENCY_SLICE_PROPERTY, "slice-property" },
};
assert(f);