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

Method garbageCollectMountPath

src/csi/v1_volume_manager.cpp:1298–1310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1296
1297
1298void VolumeManagerProcess::garbageCollectMountPath(const string& volumeId)
1299{
1300 CHECK(!volumes.contains(volumeId));
1301
1302 const string path = paths::getMountPath(mountRootDir, volumeId);
1303 if (os::exists(path)) {
1304 Try<Nothing> rmdir = os::rmdir(path);
1305 if (rmdir.isError()) {
1306 LOG(ERROR) << "Failed to remove directory '" << path
1307 << "': " << rmdir.error();
1308 }
1309 }
1310}
1311
1312
1313void 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