| 1234 | |
| 1235 | |
| 1236 | void VolumeManagerProcess::checkpointVolumeState(const string& volumeId) |
| 1237 | { |
| 1238 | const string statePath = |
| 1239 | paths::getVolumeStatePath(rootDir, info.type(), info.name(), volumeId); |
| 1240 | |
| 1241 | // NOTE: We ensure the checkpoint is synced to the filesystem to avoid |
| 1242 | // resulting in a stale or empty checkpoint when a system crash happens. |
| 1243 | Try<Nothing> checkpoint = |
| 1244 | slave::state::checkpoint(statePath, volumes.at(volumeId).state, true); |
| 1245 | |
| 1246 | CHECK_SOME(checkpoint) |
| 1247 | << "Failed to checkpoint volume state to '" << statePath << "':" |
| 1248 | << checkpoint.error(); |
| 1249 | } |
| 1250 | |
| 1251 | |
| 1252 | void VolumeManagerProcess::garbageCollectMountPath(const string& volumeId) |
nothing calls this directly
no test coverage detected