summaryrefslogtreecommitdiff
path: root/src/shared/unit-file.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-07-10 18:01:13 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-07-30 14:01:46 +0200
commit91e0ee5f16321656ed6f827742ecbeb2b36027f2 (patch)
tree41f3b5b389f8e6353b5e8bfb34272add25b10385 /src/shared/unit-file.h
parente67cd21d7d174cdafd12beca4cfb6e19e61f6fb5 (diff)
downloadsystemd-91e0ee5f16321656ed6f827742ecbeb2b36027f2.tar.gz
systemd-91e0ee5f16321656ed6f827742ecbeb2b36027f2.tar.bz2
systemd-91e0ee5f16321656ed6f827742ecbeb2b36027f2.zip
pid1: drop unit caches only based on mtime
v2: - do not watch mtime of transient and generated dirs We'd reload the map after every transient unit we created, which we don't need to do, since we create those units ourselves and know their fragment path.
Diffstat (limited to 'src/shared/unit-file.h')
-rw-r--r--src/shared/unit-file.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/unit-file.h b/src/shared/unit-file.h
index 52e17f7cfb..54cc7876fe 100644
--- a/src/shared/unit-file.h
+++ b/src/shared/unit-file.h
@@ -4,6 +4,7 @@
#include <stdbool.h>
#include "hashmap.h"
+#include "time-util.h"
#include "unit-name.h"
typedef enum UnitFileState UnitFileState;
@@ -42,6 +43,7 @@ int unit_validate_alias_symlink_and_warn(const char *filename, const char *targe
int unit_file_build_name_map(
const LookupPaths *lp,
+ usec_t *ret_time,
Hashmap **ret_unit_ids_map,
Hashmap **ret_unit_names_map,
Set **ret_path_cache);