]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/load-fragment.h
core: rename "mount_flags" → "mount_propagation_flag" internally where appropriate
authorLennart Poettering <lennart@poettering.net>
Mon, 13 Mar 2023 14:14:11 +0000 (15:14 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 14 Mar 2023 04:00:27 +0000 (13:00 +0900)
commit874cdcbcf5eb233a45b56b4e09e19defc4be9a0e
treee9b4a45458e68232eed3c45368b02f9bea07c75a
parenteacfbd89c31742ace242177f570e9c70f915ce86
core: rename "mount_flags" → "mount_propagation_flag" internally where appropriate

ExecContext has a field that controls the mount propagation flag of the
mounts in the resulting namespace. This is exposed as "MountFlags="
which is super confusing, as it suggests one could control more than
propagation, and that it was actually a flags field. It's an enum
though only, and nothing else.

We might want to rename this externally one day, but given the compat
kludges this requires and the fact this is somewhat nichey it might not
be worth it. But internally let's rename it, as it makes things much
easier to grok, in particular as part of the codebase already exposed
the concept as mount_propagation_flag.

No actual code flow changes, just some renaming.
src/core/dbus-execute.c
src/core/execute.c
src/core/execute.h
src/core/load-fragment-gperf.gperf.in
src/core/load-fragment.c
src/core/load-fragment.h
src/core/namespace.c
src/core/namespace.h