| 229 | // TODO(jieyu): Consider not using CHECKs here. |
| 230 | Try<list<string>> paths = fs::list(path::join(workDir, "*-*")); |
| 231 | foreach (const string& path, CHECK_NOTERROR(paths)) { |
| 232 | Try<VolumeInfo> createdVolume = CHECK_NOTERROR(parseVolumePath(path)); |
| 233 | volumes.put(createdVolume->id, createdVolume.get()); |
| 234 | usedCapacity += createdVolume->capacity; |
| 235 | } |
| 236 | |
| 237 | // Create preprovisioned volumes if they have not existed yet. |
| 238 | foreachpair (const string& name, const Bytes& capacity, _volumes) { |
nothing calls this directly
no test coverage detected