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

Method garbageCollectMountPath

src/csi/v0_volume_manager.cpp:1252–1264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1250
1251
1252void VolumeManagerProcess::garbageCollectMountPath(const string& volumeId)
1253{
1254 CHECK(!volumes.contains(volumeId));
1255
1256 const string path = paths::getMountPath(mountRootDir, volumeId);
1257 if (os::exists(path)) {
1258 Try<Nothing> rmdir = os::rmdir(path);
1259 if (rmdir.isError()) {
1260 LOG(ERROR) << "Failed to remove directory '" << path
1261 << "': " << rmdir.error();
1262 }
1263 }
1264}
1265
1266
1267void VolumeManagerProcess::removeVolume(const string& volumeId)

Callers

nothing calls this directly

Calls 6

getMountPathFunction · 0.85
errorMethod · 0.65
existsFunction · 0.50
rmdirFunction · 0.50
containsMethod · 0.45
isErrorMethod · 0.45

Tested by

no test coverage detected