Lines Matching refs:relocations
502 void relocate(Relocations& relocations, sector_t dest, sector_t source, int count) { in relocate() argument
504 auto s = --relocations.upper_bound(source); in relocate()
512 for (; s != relocations.end() && s->first < source + count; ++s) in relocate()
516 auto dest_end = --relocations.upper_bound(dest + count); in relocate()
517 relocations[dest + count] = dest + count - dest_end->first + dest_end->second; in relocate()
520 relocations.erase(relocations.lower_bound(dest), relocations.lower_bound(dest + count)); in relocate()
523 relocations.insert(slice.begin(), slice.end()); in relocate()
602 std::vector<char> relocatedRead(int device_fd, Relocations const& relocations, bool validating, in relocatedRead() argument
618 auto relocation = --relocations.upper_bound(sector); in relocatedRead()
639 Relocations relocations; in cp_restoreCheckpoint() local
640 relocations[0] = 0; in cp_restoreCheckpoint()
666 auto ls_buffer = relocatedRead(device_fd, relocations, validating, 0, in cp_restoreCheckpoint()
714 auto buffer = relocatedRead(device_fd, relocations, validating, le->dest, le->size, in cp_restoreCheckpoint()
731 relocate(relocations, le->source, le->dest, (le->size - 1) / kSectorSize + 1); in cp_restoreCheckpoint()
750 auto buffer = relocatedRead(device_fd, relocations, false, original_ls.sector0, in cp_restoreCheckpoint()