Lines Matching refs:pt
299 std::unique_ptr<LpMetadata> pt; in LpdumpMain() local
303 pt = ReadMetadata(opener, file, slot); in LpdumpMain()
304 if (!pt && !IsBlockDevice(file)) { in LpdumpMain()
305 pt = ReadFromImageFile(file); in LpdumpMain()
310 pt = ReadMetadata(GetSuperPartionName(), slot_number); in LpdumpMain()
318 return PrintJson(pt.get(), cout, cerr); in LpdumpMain()
321 if (!pt) { in LpdumpMain()
326 cout << "Metadata version: " << pt->header.major_version << "." << pt->header.minor_version in LpdumpMain()
328 cout << "Metadata size: " << (pt->header.header_size + pt->header.tables_size) << " bytes\n"; in LpdumpMain()
329 cout << "Metadata max size: " << pt->geometry.metadata_max_size << " bytes\n"; in LpdumpMain()
330 cout << "Metadata slot count: " << pt->geometry.metadata_slot_count << "\n"; in LpdumpMain()
334 for (const auto& partition : pt->partitions) { in LpdumpMain()
336 std::string group_name = GetPartitionGroupName(pt->groups[partition.group_index]); in LpdumpMain()
343 const LpMetadataExtent& extent = pt->extents[partition.first_extent_index + i]; in LpdumpMain()
348 const auto& block_device = pt->block_devices[extent.target_source]; in LpdumpMain()
361 for (const auto& block_device : pt->block_devices) { in LpdumpMain()
372 for (const auto& group : pt->groups) { in LpdumpMain()