-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
launch: list directories alphabetically
When enumerating directories ensure that we iterate the entries in alphabetical order. We used to follow what the reference-implementation does, and simply read directories in semi-random on-disk order. This is rather brittle to debug and exposes behavior that we really don't want to expose. Instead, we want predictable enumerations so policy and service-files can be more easily traced and debugged. The downside of ordering directory entries is that we have to collect all entries first, rather than using the streaming API of the kernel. Fortunately, this is what we do, anyway, since we already have 1-to-1 mappings of the directory entries to internal data-structures. Hence, in all our current use-cases, it is not an issue to stream everything into a collection first. Signed-off-by: David Rheinsberg <[email protected]>
- Loading branch information
Showing
2 changed files
with
20 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters