namespace: normalize memory management of mount list

So far we calculated exactly how many mounts we will generate, which is
a bit fragile, and easy to get wrong.

Let's normalize this, and grow the array of mounts as we need.

Various other modernizations while we are at it, such as FOREACH_ARRAY
usage, or `_cleanup_` usage.
This commit is contained in:
Lennart Poettering
2023-10-16 12:17:56 +02:00
parent c7fda70716
commit 063c977a79
+481 -461
View File
File diff suppressed because it is too large Load Diff