Files
lix/src/libutil/mount.hh
T
Artemis Tosini 3058029fba libutil: Add bindPath function from libstore
bindPath/doBind is a useful function in build that is used in several
parts of LocalDerivationGoal. Moving this function makes it easier to
split LocalDerivationGoal implementation between several files.

Change-Id: Ic5a0768479c153c1aa3ed425f12604b20bbf0f42
2024-07-27 19:40:40 +00:00

17 lines
305 B
C++

#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