Lines Matching refs:block_size
418 uint32_t block_size; member
565 write(device_fd, &ls_buffer[0], ls.block_size); in restoreSector()
591 sector_t sector, uint32_t size, uint32_t block_size) { in relocatedRead() argument
600 for (uint32_t i = 0; i < size; i += block_size, sector += block_size / kSectorSize) { in relocatedRead()
604 read(device_fd, &buffer[i], block_size); in relocatedRead()
639 original_ls.block_size, original_ls.block_size); in cp_restoreCheckpoint()
650 if (ls.block_size != original_ls.block_size) { in cp_restoreCheckpoint()
671 ls.block_size); in cp_restoreCheckpoint()
672 uint32_t checksum = le->source / (ls.block_size / kSectorSize); in cp_restoreCheckpoint()
673 for (size_t i = 0; i < le->size; i += ls.block_size) { in cp_restoreCheckpoint()
674 crc32(&buffer[i], ls.block_size, &checksum); in cp_restoreCheckpoint()
703 original_ls.block_size, original_ls.block_size); in cp_restoreCheckpoint()
705 write(device_fd, &buffer[0], original_ls.block_size); in cp_restoreCheckpoint()