Lines Matching refs:block_map_data
127 auto block_map_data = BlockMapData::ParseBlockMapFile(filename); in MapBlockFile() local
128 if (!block_map_data) { in MapBlockFile()
132 if (block_map_data.file_size() > std::numeric_limits<size_t>::max()) { in MapBlockFile()
133 LOG(ERROR) << "File size is too large for mmap " << block_map_data.file_size(); in MapBlockFile()
138 uint32_t blksize = block_map_data.block_size(); in MapBlockFile()
139 uint64_t blocks = ((block_map_data.file_size() - 1) / blksize) + 1; in MapBlockFile()
146 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(block_map_data.path().c_str(), O_RDONLY))); in MapBlockFile()
148 PLOG(ERROR) << "failed to open block device " << block_map_data.path(); in MapBlockFile()
157 for (const auto& [start, end] : block_map_data.block_ranges()) { in MapBlockFile()
178 length = block_map_data.file_size(); in MapBlockFile()
180 LOG(INFO) << "mmapped " << block_map_data.block_ranges().size() << " ranges"; in MapBlockFile()