X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbasic%2Fmount-util.h;h=d538ea9533ac59b0906efec374d27c0c40cb69ae;hb=a683e1878913969ccf8b0defdec4d955e15ed75a;hp=b7c747055a415c998d1453e31a815032e747c084;hpb=d4b35b9aa181cc5dbd257a4a7cc9f75886a73acc;p=elogind.git diff --git a/src/basic/mount-util.h b/src/basic/mount-util.h index b7c747055..d538ea953 100644 --- a/src/basic/mount-util.h +++ b/src/basic/mount-util.h @@ -1,5 +1,3 @@ -/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ - #pragma once /*** @@ -38,7 +36,7 @@ int path_is_mount_point(const char *path, int flags); int repeat_unmount(const char *path, int flags); int umount_recursive(const char *target, int flags); -int bind_remount_recursive(const char *prefix, bool ro); +int bind_remount_recursive(const char *prefix, bool ro, char **blacklist); int mount_move_root(const char *path); #endif // 0 @@ -55,4 +53,17 @@ union file_handle_union { char padding[sizeof(struct file_handle) + MAX_HANDLE_SZ]; }; +const char* mode_to_inaccessible_node(mode_t mode); + #define FILE_HANDLE_INIT { .handle.handle_bytes = MAX_HANDLE_SZ } + +#if 0 /// UNNEEDED by elogind +int mount_verbose( + int error_log_level, + const char *what, + const char *where, + const char *type, + unsigned long flags, + const char *options); +int umount_verbose(const char *where); +#endif // 0