]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/install.c
install: cache the presets before evaluating 3183/head
authorAlex Crawford <alex.crawford@coreos.com>
Thu, 28 Apr 2016 06:59:20 +0000 (23:59 -0700)
committerAlex Crawford <alex.crawford@coreos.com>
Tue, 3 May 2016 18:46:14 +0000 (11:46 -0700)
commit8965d9f8b93b467c8827201b8cd55a762e406801
tree2058a5d5ec7d2069305261f6ce8ac57eab01443a
parent622d37058487ce955337ca9d843d92a67cd6a609
install: cache the presets before evaluating

The previous implementation traversed the various config directories,
walking the preset files and parsing each line to determine if a service
should be enabled or disabled. It did this for every service which
resulted in many more file operations than neccessary.

This approach parses each of the preset entries into an array which is
then used to check if each service should be enabled or disabled.
src/shared/install.c