Line data Source code
1 : /* SPDX-License-Identifier: LGPL-2.1+ */ 2 : #pragma once 3 : 4 : #include <mntent.h> 5 : #include <stdio.h> 6 : 7 : #include "macro.h" 8 : 9 : int repeat_unmount(const char *path, int flags); 10 : int umount_recursive(const char *target, int flags); 11 : int bind_remount_recursive(const char *prefix, unsigned long new_flags, unsigned long flags_mask, char **blacklist); 12 : int bind_remount_recursive_with_mountinfo(const char *prefix, unsigned long new_flags, unsigned long flags_mask, char **blacklist, FILE *proc_self_mountinfo); 13 : 14 : int mount_move_root(const char *path); 15 : 16 0 : DEFINE_TRIVIAL_CLEANUP_FUNC(FILE*, endmntent); 17 : #define _cleanup_endmntent_ _cleanup_(endmntentp) 18 : 19 : int 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); 26 : int umount_verbose(const char *where); 27 : 28 : int mount_option_mangle( 29 : const char *options, 30 : unsigned long mount_flags, 31 : unsigned long *ret_mount_flags, 32 : char **ret_remaining_options); 33 : 34 : const char* mode_to_inaccessible_node(mode_t mode);