]>
Commit | Line | Data |
---|---|---|
db9ecf05 | 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
049af8ad ZJS |
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); | |
ac2474e4 | 17 | bool fstype_is_blockdev_backed(const char *fstype); |
049af8ad ZJS |
18 | bool fstype_is_ro(const char *fsype); |
19 | bool fstype_can_discard(const char *fstype); | |
20 | bool fstype_can_uid_gid(const char *fstype); | |
21 | ||
22 | int dev_is_devtmpfs(void); | |
23 | ||
24 | const char *mount_propagation_flags_to_string(unsigned long flags); | |
25 | int mount_propagation_flags_from_string(const char *name, unsigned long *ret); |