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

Method removeVolume

src/csi/v1_volume_manager.cpp:1313–1325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1311
1312
1313void VolumeManagerProcess::removeVolume(const string& volumeId)
1314{
1315 volumes.erase(volumeId);
1316
1317 const string volumePath =
1318 paths::getVolumePath(rootDir, info.type(), info.name(), volumeId);
1319
1320 Try<Nothing> rmdir = os::rmdir(volumePath);
1321 CHECK_SOME(rmdir) << "Failed to remove checkpointed volume state at '"
1322 << volumePath << "': " << rmdir.error();
1323
1324 garbageCollectMountPath(volumeId);
1325}
1326
1327
1328Future<Map<string, string>> VolumeManagerProcess::resolveSecrets(

Callers

nothing calls this directly

Calls 6

getVolumePathFunction · 0.85
typeMethod · 0.80
errorMethod · 0.65
rmdirFunction · 0.50
eraseMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected