| 341 | } |
| 342 | |
| 343 | Errata |
| 344 | VolumeAllocator::allocateSpan(swoc::file::path const &input_file_path) |
| 345 | { |
| 346 | Errata zret; |
| 347 | for (auto span : _cache._spans) { |
| 348 | if (span->_path.view() == input_file_path.view()) { |
| 349 | std::cout << "===============================" << std::endl; |
| 350 | if (span->_header) { |
| 351 | zret.note("Disk already initialized with valid header"); |
| 352 | } else { |
| 353 | this->allocateFor(*span); |
| 354 | span->updateHeader(); |
| 355 | for (auto &strp : span->_stripes) { |
| 356 | strp->updateHeaderFooter(); |
| 357 | } |
| 358 | } |
| 359 | } |
| 360 | } |
| 361 | for (auto &_v : _av) { |
| 362 | std::cout << _v._size << std::endl; |
| 363 | } |
| 364 | return zret; |
| 365 | } |
| 366 | |
| 367 | Errata |
| 368 | VolumeAllocator::fillAllSpans() |
no test coverage detected