summaryrefslogtreecommitdiffstats
path: root/src/basic/missing_mount.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-06-21 07:52:55 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-06-21 14:14:20 +0200
commit1c092b62dbbc36434ad421d683c92b8aeda5ebdb (patch)
tree4064ac79a7fa79e48f14c5c22f8ed8af4f706ba4 /src/basic/missing_mount.h
parentnspawn: replace strextend_with_separator() -> strextendf_with_separator() (diff)
downloadsystemd-1c092b62dbbc36434ad421d683c92b8aeda5ebdb.tar.xz
systemd-1c092b62dbbc36434ad421d683c92b8aeda5ebdb.zip
mount-util: make mount_flags_to_string() show flag name instead of number
This also adds missing MS_NOSYMFOLLOW flag. Moreover, this makes the function always add unhandled flags in number.
Diffstat (limited to 'src/basic/missing_mount.h')
-rw-r--r--src/basic/missing_mount.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/basic/missing_mount.h b/src/basic/missing_mount.h
new file mode 100644
index 0000000000..c60acf041a
--- /dev/null
+++ b/src/basic/missing_mount.h
@@ -0,0 +1,8 @@
+#pragma once
+
+#include <sys/mount.h>
+
+/* dab741e0e02bd3c4f5e2e97be74b39df2523fc6e (5.10) */
+#ifndef MS_NOSYMFOLLOW
+#define MS_NOSYMFOLLOW 256
+#endif