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

Method removeVolume

src/csi/v0_volume_manager.cpp:1267–1279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1265
1266
1267void VolumeManagerProcess::removeVolume(const string& volumeId)
1268{
1269 volumes.erase(volumeId);
1270
1271 const string volumePath =
1272 paths::getVolumePath(rootDir, info.type(), info.name(), volumeId);
1273
1274 Try<Nothing> rmdir = os::rmdir(volumePath);
1275 CHECK_SOME(rmdir) << "Failed to remove checkpointed volume state at '"
1276 << volumePath << "': " << rmdir.error();
1277
1278 garbageCollectMountPath(volumeId);
1279}
1280
1281
1282Future<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