]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/mountpoint-util.h
Merge pull request #11827 from keszybz/pkgconfig-variables
[thirdparty/systemd.git] / src / basic / mountpoint-util.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #include <fcntl.h>
5 #include <stdbool.h>
6 #include <sys/types.h>
7
8 int name_to_handle_at_loop(int fd, const char *path, struct file_handle **ret_handle, int *ret_mnt_id, int flags);
9
10 int path_get_mnt_id(const char *path, int *ret);
11
12 int fd_is_mount_point(int fd, const char *filename, int flags);
13 int path_is_mount_point(const char *path, const char *root, int flags);
14
15 bool fstype_is_network(const char *fstype);
16 bool fstype_is_api_vfs(const char *fstype);
17 bool fstype_is_ro(const char *fsype);
18 bool fstype_can_discard(const char *fstype);
19 bool fstype_can_uid_gid(const char *fstype);
20
21 int dev_is_devtmpfs(void);
22
23 const char *mount_propagation_flags_to_string(unsigned long flags);
24 int mount_propagation_flags_from_string(const char *name, unsigned long *ret);