mountpoint-util: Add path_get_mnt_id_at()

This commit is contained in:
Daan De Meyer
2023-03-15 11:51:06 +01:00
parent d77d42ed3a
commit 9bf8441503
2 changed files with 16 additions and 5 deletions
+4 -1
View File
@@ -37,7 +37,10 @@
int name_to_handle_at_loop(int fd, const char *path, struct file_handle **ret_handle, int *ret_mnt_id, int flags);
int path_get_mnt_id(const char *path, int *ret);
int path_get_mnt_id_at(int dir_fd, const char *path, int *ret);
static inline int path_get_mnt_id(const char *path, int *ret) {
return path_get_mnt_id_at(AT_FDCWD, path, ret);
}
int fd_is_mount_point(int fd, const char *filename, int flags);
int path_is_mount_point(const char *path, const char *root, int flags);