| 1265 | |
| 1266 | |
| 1267 | void 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 | |
| 1282 | Future<Map<string, string>> VolumeManagerProcess::resolveSecrets( |