diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-06-23 17:50:17 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-06-23 18:30:59 +0200 |
commit | 1b618bf1414a72b1b4c77a2762bc07fca47d572d (patch) | |
tree | e8687e0655a74c86b5d16f1a7889d7fa04352bff /src/shared/mount-util.h | |
parent | mount-util: don't claim maybe-uninitialized was false that is valid (diff) | |
download | systemd-1b618bf1414a72b1b4c77a2762bc07fca47d572d.tar.xz systemd-1b618bf1414a72b1b4c77a2762bc07fca47d572d.zip |
mount-util: add helper that can bind mount submounts of one dir to another
Diffstat (limited to 'src/shared/mount-util.h')
-rw-r--r-- | src/shared/mount-util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/mount-util.h b/src/shared/mount-util.h index 7214cf1e52..42a15b5800 100644 --- a/src/shared/mount-util.h +++ b/src/shared/mount-util.h @@ -132,6 +132,10 @@ int remount_and_move_sub_mounts( const char *options); int remount_sysfs(const char *where); +int bind_mount_submounts( + const char *source, + const char *target); + /* Creates a mount point (not parents) based on the source path or stat - ie, a file or a directory */ int make_mount_point_inode_from_stat(const struct stat *st, const char *dest, mode_t mode); int make_mount_point_inode_from_path(const char *source, const char *dest, mode_t mode); |