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

Function getVolumePath

src/csi/paths.cpp:215–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213
214
215string getVolumePath(
216 const string& rootDir,
217 const string& type,
218 const string& name,
219 const string& volumeId)
220{
221 // Volume ID is percent-encoded to avoid invalid characters in the path.
222 return path::join(rootDir, type, name, VOLUMES_DIR, http::encode(volumeId));
223}
224
225
226Try<VolumePath> parseVolumePath(const string& rootDir, const string& dir)

Callers 6

removeVolumeMethod · 0.85
removeVolumeMethod · 0.85
getVolumeStatePathFunction · 0.85
parseVolumePathMethod · 0.85
foreachvalueFunction · 0.85
createVolumeInfoMethod · 0.85

Calls 2

joinFunction · 0.50
encodeFunction · 0.50

Tested by 3

parseVolumePathMethod · 0.68
foreachvalueFunction · 0.68
createVolumeInfoMethod · 0.68