summaryrefslogtreecommitdiffstats
path: root/src/basic/mountpoint-util.h
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-04-20 21:02:38 +0200
committerMike Yuan <me@yhndnzj.com>2024-05-21 18:48:51 +0200
commit88873231c87411f7513428cb4237e4877249c4bf (patch)
tree5fa2737757b305d831145ed2dede4985c336ffa0 /src/basic/mountpoint-util.h
parentMerge pull request #32957 from mrc0mmand/fix-coverage-builds (diff)
downloadsystemd-88873231c87411f7513428cb4237e4877249c4bf.tar.xz
systemd-88873231c87411f7513428cb4237e4877249c4bf.zip
mountpoint-util: add missing assertions, make mount_fd static
Diffstat (limited to 'src/basic/mountpoint-util.h')
-rw-r--r--src/basic/mountpoint-util.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/basic/mountpoint-util.h b/src/basic/mountpoint-util.h
index d7c6251aff..e5f21780f8 100644
--- a/src/basic/mountpoint-util.h
+++ b/src/basic/mountpoint-util.h
@@ -63,8 +63,12 @@ const char* fstype_norecovery_option(const char *fstype);
int dev_is_devtmpfs(void);
-int mount_fd(const char *source, int target_fd, const char *filesystemtype, unsigned long mountflags, const void *data);
-int mount_nofollow(const char *source, const char *target, const char *filesystemtype, unsigned long mountflags, const void *data);
+int mount_nofollow(
+ const char *source,
+ const char *target,
+ const char *filesystemtype,
+ unsigned long mountflags,
+ const void *data);
const char *mount_propagation_flag_to_string(unsigned long flags);
int mount_propagation_flag_from_string(const char *name, unsigned long *ret);