]> git.ipfire.org Git - thirdparty/systemd.git/commit
namespace: normalize memory management of mount list
authorLennart Poettering <lennart@poettering.net>
Fri, 13 Oct 2023 16:58:13 +0000 (18:58 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 16 Oct 2023 10:17:56 +0000 (12:17 +0200)
commit063c977a798efe95b08b58fdf75fcd9897a4f64a
tree0a9d6b727af76e38599a118675c8805e02390329
parentc7fda707163f1779ce74cba3f79f5da0d63b10dc
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.
src/core/namespace.c