Lines Matching refs:relocations
490 void relocate(Relocations& relocations, sector_t dest, sector_t source, int count) { in relocate() argument
492 auto s = --relocations.upper_bound(source); in relocate()
500 for (; s != relocations.end() && s->first < source + count; ++s) in relocate()
504 auto dest_end = --relocations.upper_bound(dest + count); in relocate()
505 relocations[dest + count] = dest + count - dest_end->first + dest_end->second; in relocate()
508 relocations.erase(relocations.lower_bound(dest), relocations.lower_bound(dest + count)); in relocate()
511 relocations.insert(slice.begin(), slice.end()); in relocate()
589 std::vector<char> relocatedRead(int device_fd, Relocations const& relocations, bool validating, in relocatedRead() argument
600 auto relocation = --relocations.upper_bound(sector); in relocatedRead()
617 Relocations relocations; in cp_restoreCheckpoint() local
618 relocations[0] = 0; in cp_restoreCheckpoint()
637 auto ls_buffer = relocatedRead(device_fd, relocations, validating, 0, in cp_restoreCheckpoint()
669 auto buffer = relocatedRead(device_fd, relocations, validating, le->dest, le->size, in cp_restoreCheckpoint()
682 relocate(relocations, le->source, le->dest, (le->size - 1) / kSectorSize + 1); in cp_restoreCheckpoint()
701 auto buffer = relocatedRead(device_fd, relocations, false, original_ls.sector0, in cp_restoreCheckpoint()