aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/mount.hh
blob: 59e2218be1d5c39ed97ec277d66df7a4942b4f56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once
///@file

#include "types.hh"

#if __linux__
namespace nix {

/**
 * Bind-mount file or directory from `source` to `destination`.
 * If source does not exist this will fail unless `optional` is set
 */
void bindPath(const Path & source, const Path & target, bool optional = false);

}
#endif