mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
e8630e6952
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. |
||
---|---|---|
.. | ||
Makefile | ||
test-dropin.sh | ||
test.sh | ||
testsuite.service |