summaryrefslogtreecommitdiffstats
path: root/src/core/mount.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-11-28 19:06:30 +0100
committerLennart Poettering <lennart@poettering.net>2018-12-07 17:35:32 +0100
commitec88d1ea0591beccab97d9096fd3fd7b09bc823c (patch)
tree811238709d2e962d324f2ea558c81b5b4f2043d9 /src/core/mount.h
parentmount: strdup() device paths we collect (diff)
downloadsystemd-ec88d1ea0591beccab97d9096fd3fd7b09bc823c.tar.xz
systemd-ec88d1ea0591beccab97d9096fd3fd7b09bc823c.zip
mount: replace three closely related mount flags into a proper flags enum
We pass these flags around, and even created a structure for them. Let's fix things properly, and make them a flags value of its own.
Diffstat (limited to '')
-rw-r--r--src/core/mount.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/core/mount.h b/src/core/mount.h
index 67ab8ecf93..2e59f1fe04 100644
--- a/src/core/mount.h
+++ b/src/core/mount.h
@@ -34,6 +34,13 @@ typedef struct MountParameters {
char *fstype;
} MountParameters;
+/* Used while looking for mount points that vanished or got added from/to /proc/self/mountinfo */
+typedef enum MountProcFlags {
+ MOUNT_PROC_IS_MOUNTED = 1 << 0,
+ MOUNT_PROC_JUST_MOUNTED = 1 << 1,
+ MOUNT_PROC_JUST_CHANGED = 1 << 2,
+} MountProcFlags;
+
struct Mount {
Unit meta;
@@ -45,11 +52,7 @@ struct Mount {
bool from_proc_self_mountinfo:1;
bool from_fragment:1;
- /* Used while looking for mount points that vanished or got
- * added from/to /proc/self/mountinfo */
- bool is_mounted:1;
- bool just_mounted:1;
- bool just_changed:1;
+ MountProcFlags proc_flags;
bool sloppy_options;