| 1280 | |
| 1281 | |
| 1282 | void VolumeManagerProcess::checkpointVolumeState(const string& volumeId) |
| 1283 | { |
| 1284 | const string statePath = |
| 1285 | paths::getVolumeStatePath(rootDir, info.type(), info.name(), volumeId); |
| 1286 | |
| 1287 | // NOTE: We ensure the checkpoint is synced to the filesystem to avoid |
| 1288 | // resulting in a stale or empty checkpoint when a system crash happens. |
| 1289 | Try<Nothing> checkpoint = |
| 1290 | slave::state::checkpoint(statePath, volumes.at(volumeId).state, true); |
| 1291 | |
| 1292 | CHECK_SOME(checkpoint) |
| 1293 | << "Failed to checkpoint volume state to '" << statePath << "':" |
| 1294 | << checkpoint.error(); |
| 1295 | } |
| 1296 | |
| 1297 | |
| 1298 | void VolumeManagerProcess::garbageCollectMountPath(const string& volumeId) |
nothing calls this directly
no test coverage detected