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

Function getMountPath

src/csi/paths.cpp:291–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289
290
291string getMountPath(const string& mountRootDir, const string& volumeId)
292{
293 // Volume ID is percent-encoded to avoid invalid characters in the path.
294 return path::join(mountRootDir, http::encode(volumeId));
295}
296
297
298Try<string> parseMountPath(const string& mountRootDir, const string& dir)

Callers 4

getMountStagingPathFunction · 0.85
getMountTargetPathFunction · 0.85

Calls 2

joinFunction · 0.50
encodeFunction · 0.50

Tested by

no test coverage detected