Revert: Rework unit loading to take into account all aliases
authorINSUN PYO <insun.pyo@samsung.com>
Tue, 9 Jun 2020 00:55:24 +0000 (09:55 +0900)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Mon, 12 Feb 2024 15:37:49 +0000 (16:37 +0100)
commite9d3ce2fbfe1d91708ef98de3e410d610dfc84d1
treeda904e7f54896e1b0a1758edcfaa191c0311b02b
parent80b66f8908c4ebe05f4803fe278bcaae94c0f1c0
Revert: Rework unit loading to take into account all aliases

Revert below patches due to increasing unit loading time (UnitsLoadFinishTimestamp - UnitsLoadStartTimestamp)

Refer: https://github.com/systemd/systemd/pull/13119/commits
 - test-unit-file: allow printing of information about specific units
 - pid1: drop unit caches only based on mtime
 - analyze: add "unit-files" to dump the unit fragment map
 - core: restore initialization of u->source_mtime
 - pid1: use a cache for all unit aliases
 - shared/unit-file: add a function to validate unit alias symlinks
 - TEST-15-DROPIN: add test for details of unit aliasing

Change-Id: I1bff89f5851544cda7522bd3ceb398499dac57d4
src/analyze/analyze.c
src/core/load-fragment.c
src/core/manager.c
src/core/manager.h
src/core/unit.c
src/shared/unit-file.c
src/shared/unit-file.h
src/systemctl/systemctl.c
src/test/meson.build
src/test/test-unit-file.c [deleted file]
test/TEST-15-DROPIN/test-dropin.sh