Lines Matching refs:extent
49 bool ExtractExtent(const LpMetadataExtent& extent, int output_fd);
64 bool WriteExtent(const LpMetadataExtent& extent);
219 const LpMetadataExtent& extent = metadata_->extents[index]; in ExtractPartition() local
221 if (extent.target_type != LP_TARGET_TYPE_LINEAR) { in ExtractPartition()
222 std::cerr << "Unsupported target type in extent: " << extent.target_type << "\n"; in ExtractPartition()
225 if (extent.target_source != 0) { in ExtractPartition()
229 total_size += extent.num_sectors * LP_SECTOR_SIZE; in ExtractPartition()
245 const LpMetadataExtent& extent = metadata_->extents[index]; in ExtractPartition() local
247 if (!writer.WriteExtent(extent)) { in ExtractPartition()
257 bool SparseWriter::WriteExtent(const LpMetadataExtent& extent) { in WriteExtent() argument
260 off_t super_offset = extent.target_data * LP_SECTOR_SIZE; in WriteExtent()
266 uint64_t remaining_bytes = extent.num_sectors * LP_SECTOR_SIZE; in WriteExtent()