]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/shared/mount-util.h
Merge pull request #11988 from keszybz/test-binaries-installation
[thirdparty/systemd.git] / src / shared / mount-util.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
4349cd7c
LP
2#pragma once
3
4349cd7c 4#include <mntent.h>
11c3a366 5#include <stdio.h>
4e036b7a 6
11c3a366 7#include "macro.h"
4349cd7c 8
3f2c0bec 9int repeat_unmount(const char *path, int flags);
4349cd7c 10int umount_recursive(const char *target, int flags);
6b7c9f8b 11int bind_remount_recursive(const char *prefix, bool ro, char **blacklist);
ac9de0b3 12int bind_remount_recursive_with_mountinfo(const char *prefix, bool ro, char **blacklist, FILE *proc_self_mountinfo);
4349cd7c
LP
13
14int mount_move_root(const char *path);
15
16DEFINE_TRIVIAL_CLEANUP_FUNC(FILE*, endmntent);
17#define _cleanup_endmntent_ _cleanup_(endmntentp)
4e036b7a 18
60e76d48
ZJS
19int mount_verbose(
20 int error_log_level,
21 const char *what,
22 const char *where,
23 const char *type,
24 unsigned long flags,
25 const char *options);
26int umount_verbose(const char *where);
83555251 27
9e7f941a
YW
28int mount_option_mangle(
29 const char *options,
30 unsigned long mount_flags,
31 unsigned long *ret_mount_flags,
32 char **ret_remaining_options);
be1791ad 33
049af8ad 34const char* mode_to_inaccessible_node(mode_t mode);