mount-util: add helper that ensures something is a mount point

This commit is contained in:
Lennart Poettering
2021-05-07 22:43:29 +02:00
parent 6c045a9998
commit 14a25e1fae
3 changed files with 25 additions and 5 deletions
+2
View File
@@ -103,3 +103,5 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(char*, umount_and_rmdir_and_free);
int bind_mount_in_namespace(pid_t target, const char *propagate_path, const char *incoming_path, const char *src, const char *dest, bool read_only, bool make_file_or_directory);
int mount_image_in_namespace(pid_t target, const char *propagate_path, const char *incoming_path, const char *src, const char *dest, bool read_only, bool make_file_or_directory, const MountOptions *options);
int make_mount_point(const char *path);