]> git.ipfire.org Git - thirdparty/systemd.git/commit
mount: replace UNIT_DEPENDENCY_MOUNTINFO_OR_FILE with UNIT_DEPENDENCY_MOUNTINFO/UNIT_... 24654/head
authorFranck Bui <fbui@suse.com>
Mon, 12 Sep 2022 15:54:22 +0000 (17:54 +0200)
committerFranck Bui <fbui@suse.com>
Wed, 5 Oct 2022 12:52:38 +0000 (14:52 +0200)
commit87c734eedd4cba78d2a5b8aa1fe07b85efbc5a5a
treef867b0068d140592e6ba435941b91c01745e40f9
parent9c77ffc7e0459e2bbc4c0c54ff065aa302ecd62e
mount: replace UNIT_DEPENDENCY_MOUNTINFO_OR_FILE with UNIT_DEPENDENCY_MOUNTINFO/UNIT_DEPENDENCY_MOUNT_FILE

UNIT_DEPENDENCY_MOUNTINFO_OR_FILE was a bit strange as unlike the other flags
we don't know where the dependency came from exactly. Indeed its origin could
have been from the mount unit file or from /proc/self/mountinfo.

Instead this patch replaces UNIT_DEPENDENCY_MOUNTINFO_OR_FILE with 2 new
dependency flags: UNIT_DEPENDENCY_MOUNT_FILE and UNIT_DEPENDENCY_MOUNTINFO. The
former indicates that the dep is created from the unit file but unlike
UNIT_DEPENDENCY_FILE, it will be replaced by a dep with the
UNIT_DEPENDENCY_MOUNTINFO flag as soon as the kernel will make the mount
available in /proc/self/mountinfo.
src/core/mount.c
src/core/unit-serialize.c
src/core/unit.h