1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00
systemd/test/TEST-15-DROPIN
Zbigniew Jędrzejewski-Szmek e8630e6952 pid1: use a cache for all unit aliases
This reworks how we load units from disk. Instead of chasing symlinks every
time we are asked to load a unit by name, we slurp all symlinks from disk
and build two hashmaps:
1. from unit name to either alias target, or fragment on disk
   (if an alias, we put just the target name in the hashmap, if a fragment
    we put an absolute path, so we can distinguish both).
2. from a unit name to all aliases

Reading all this data can be pretty costly (40 ms) on my machine, so we keep it
around for reuse.

The advantage is that we can reliably know what all the aliases of a given unit
are. This means we can reliably load dropins under all names. This fixes #11972.
2019-07-30 14:01:46 +02:00
..
Makefile tests: add dropin dependency tests 2017-02-07 21:32:10 -05:00
test-dropin.sh pid1: use a cache for all unit aliases 2019-07-30 14:01:46 +02:00
test.sh test: use "ln -fs" 2019-07-30 13:27:06 +02:00
testsuite.service test: drop 'After=multi-user.target' from most of testsuite.service 2018-11-03 18:00:47 +09:00