Lines Matching refs:extent
297 ParseLinearExtentData(const LpMetadata& pt, const LpMetadataExtent& extent) { in ParseLinearExtentData() argument
298 if (extent.target_type != LP_TARGET_TYPE_LINEAR) { in ParseLinearExtentData()
301 const auto& block_device = pt.block_devices[extent.target_source]; in ParseLinearExtentData()
303 return std::make_tuple(std::move(device_name), extent.target_data); in ParseLinearExtentData()
327 const LpMetadataExtent& extent = pt.extents[partition.first_extent_index + i]; in PrintMetadata() local
328 cout << " " << first_sector << " .. " << (first_sector + extent.num_sectors - 1) in PrintMetadata()
330 first_sector += extent.num_sectors; in PrintMetadata()
331 if (extent.target_type == LP_TARGET_TYPE_LINEAR) { in PrintMetadata()
332 const auto& block_device = pt.block_devices[extent.target_source]; in PrintMetadata()
334 cout << "linear " << device_name.c_str() << " " << extent.target_data; in PrintMetadata()
335 } else if (extent.target_type == LP_TARGET_TYPE_ZERO) { in PrintMetadata()
338 extents.push_back(std::make_tuple(name, &extent)); in PrintMetadata()
352 for (auto&& [name, extent] : extents) { in PrintMetadata()
353 auto data = ParseLinearExtentData(pt, *extent); in PrintMetadata()
356 cout << block_device << ": " << offset << " .. " << (offset + extent->num_sectors) in PrintMetadata()
357 << ": " << name << " (" << extent->num_sectors << " sectors)\n"; in PrintMetadata()