| 1311 | |
| 1312 | |
| 1313 | void 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 | |
| 1328 | Future<Map<string, string>> VolumeManagerProcess::resolveSecrets( |