]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/mount-util.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
14 int name_to_handle_at_loop(int fd
, const char *path
, struct file_handle
**ret_handle
, int *ret_mnt_id
, int flags
);
16 int path_get_mnt_id(const char *path
, int *ret
);
18 int fd_is_mount_point(int fd
, const char *filename
, int flags
);
19 int path_is_mount_point(const char *path
, const char *root
, int flags
);
21 int repeat_unmount(const char *path
, int flags
);
23 int umount_recursive(const char *target
, int flags
);
24 int bind_remount_recursive(const char *prefix
, bool ro
, char **blacklist
);
25 int bind_remount_recursive_with_mountinfo(const char *prefix
, bool ro
, char **blacklist
, FILE *proc_self_mountinfo
);
27 int mount_move_root(const char *path
);
29 DEFINE_TRIVIAL_CLEANUP_FUNC(FILE*, endmntent
);
30 #define _cleanup_endmntent_ _cleanup_(endmntentp)
32 bool fstype_is_network(const char *fstype
);
33 bool fstype_is_api_vfs(const char *fstype
);
34 bool fstype_is_ro(const char *fsype
);
35 bool fstype_can_discard(const char *fstype
);
36 bool fstype_can_uid_gid(const char *fstype
);
38 const char* mode_to_inaccessible_node(mode_t mode
);
47 int umount_verbose(const char *where
);
49 const char *mount_propagation_flags_to_string(unsigned long flags
);
50 int mount_propagation_flags_from_string(const char *name
, unsigned long *ret
);
52 int mount_option_mangle(
54 unsigned long mount_flags
,
55 unsigned long *ret_mount_flags
,
56 char **ret_remaining_options
);