MCPcopy Create free account
hub / github.com/apache/mesos / mountContainerFilesystem

Function mountContainerFilesystem

src/slave/containerizer/mesos/launch.cpp:266–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264
265#ifdef __linux__
266static Try<Nothing> mountContainerFilesystem(const ContainerMountInfo& mount)
267{
268 return fs::mount(
269 mount.has_source() ? Option<string>(mount.source()) : None(),
270 mount.target(),
271 mount.has_type() ? Option<string>(mount.type()) : None(),
272 mount.has_flags() ? mount.flags() : 0,
273 mount.has_options() ? Option<string>(mount.options()) : None());
274}
275#endif // __linux__
276
277

Callers 2

foreachFunction · 0.85
executeFileOperationFunction · 0.85

Calls 4

NoneClass · 0.85
typeMethod · 0.80
mountFunction · 0.50
flagsMethod · 0.45

Tested by

no test coverage detected