]> git.ipfire.org Git - thirdparty/systemd.git/commit
cpu-set-util: introduce config_parse_cpu_set()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 20 Jun 2025 21:50:26 +0000 (06:50 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 23 Jun 2025 15:20:20 +0000 (00:20 +0900)
commitfe3ada076ea8799a4d75f2e63adf540992d6fbb2
tree2e4def22c26d9a544093ff35d6f97742804a7f7b
parent0b9ae2d303b312b54f938e7b8e5e7cde0a60e493
cpu-set-util: introduce config_parse_cpu_set()

Then, make parse_cpu_set() as a tiny wrapper of it.

Note, previously when an invalid CPU range, e.g. "3-0", is specified,
we ignore the range but allocate an empty set. But, with this commit,
now the conf parser simply ignore it without no side effect.
This potentially changes behavior of a system with such invalid setting,
but the change should be favorable for consistency with other parsers.
src/core/load-fragment.c
src/core/load-fragment.h
src/core/main.c
src/nspawn/nspawn-gperf.gperf
src/nspawn/nspawn-settings.c
src/nspawn/nspawn-settings.h
src/shared/cpu-set-util.c
src/shared/cpu-set-util.h
src/test/test-cpu-set-util.c
src/udev/net/link-config.c