]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/basic/mountpoint-util.h
license: LGPL-2.1+ -> LGPL-2.1-or-later
[thirdparty/systemd.git] / src / basic / mountpoint-util.h
CommitLineData
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
8int name_to_handle_at_loop(int fd, const char *path, struct file_handle **ret_handle, int *ret_mnt_id, int flags);
9
10int path_get_mnt_id(const char *path, int *ret);
11
12int fd_is_mount_point(int fd, const char *filename, int flags);
13int path_is_mount_point(const char *path, const char *root, int flags);
14
15bool fstype_is_network(const char *fstype);
16bool fstype_is_api_vfs(const char *fstype);
ac2474e4 17bool fstype_is_blockdev_backed(const char *fstype);
049af8ad
ZJS
18bool fstype_is_ro(const char *fsype);
19bool fstype_can_discard(const char *fstype);
20bool fstype_can_uid_gid(const char *fstype);
21
22int dev_is_devtmpfs(void);
23
24const char *mount_propagation_flags_to_string(unsigned long flags);
25int mount_propagation_flags_from_string(const char *name, unsigned long *ret);