Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Tweak the fs ordering algorithm
If two fs resources have mount points in the same parent directory, sort them by rid instead of alphanum. The typical use case is: fs#1.mnt = /srv/{svcname}/docker fs#1.size = 4g fs#2.mnt = /srv/{svcname}/data fs#2.size = 100%FREE Here you want to be able to force fs#1 provision to run before fs#2, so the 100%FREE is evaluated last. But a pure alphanum sort on mnt causes fs#2 to be provisioned first. With this patch, fs#1 and fs#2 mnt being both in the same /srv/{svcname}/ dir, they get ordered by rid.
- Loading branch information