/system/extras/partition_tools/ |
D | lpmake.cc | 201 std::vector<BlockDeviceInfo> block_devices; in main() local 317 block_devices.emplace_back(info); in main() 346 if ((has_implied_super && (!block_devices.empty() || !blockdevice_size)) || in main() 347 (!has_implied_super && block_devices.empty()) || in main() 348 (block_devices.empty() && !blockdevice_size)) { in main() 372 … block_devices.emplace_back(super_name, blockdevice_size, alignment, alignment_offset, block_size); in main() 375 for (auto& block_device : block_devices) { in main() 381 MetadataBuilder::New(block_devices, super_name, metadata_size, metadata_slots); in main() 435 if (block_devices.size() == 1) { in main()
|
D | dynamic_partitions_device_info.proto | 57 repeated BlockDevice block_devices = 5 [json_name = "block_devices"]; field
|
D | lpdump.cc | 163 for (const auto& block_device : metadata->block_devices) { in MergeMetadata() 301 const auto& block_device = pt.block_devices[extent.target_source]; in ParseLinearExtentData() 332 const auto& block_device = pt.block_devices[extent.target_source]; in PrintMetadata() 363 for (const auto& block_device : pt.block_devices) { in PrintMetadata()
|
/system/core/fs_mgr/liblp/ |
D | writer.cpp | 61 std::string block_devices(reinterpret_cast<const char*>(metadata.block_devices.data()), in SerializeMetadata() 62 metadata.block_devices.size() * sizeof(LpMetadataBlockDevice)); in SerializeMetadata() 68 header.block_devices.offset = header.groups.offset + groups.size(); in SerializeMetadata() 69 header.tables_size = header.block_devices.offset + block_devices.size(); in SerializeMetadata() 72 std::string tables = partitions + extents + groups + block_devices; in SerializeMetadata() 116 for (const auto& block_device : metadata.block_devices) { in ValidateAndSerializeMetadata()
|
D | io_test.cpp | 203 ASSERT_EQ(exported->block_devices.size(), imported->block_devices.size()); in TEST_F() 204 EXPECT_EQ(exported->block_devices[0].first_logical_sector, in TEST_F() 205 imported->block_devices[0].first_logical_sector); in TEST_F() 293 ASSERT_EQ(imported->block_devices.size(), 1); in TEST_F() 294 imported->block_devices[0].first_logical_sector++; in TEST_F() 648 ASSERT_EQ(metadata->block_devices.size(), static_cast<size_t>(1)); in TEST_F() 649 EXPECT_EQ(GetBlockDevicePartitionName(metadata->block_devices[0]), "super_b"); in TEST_F() 660 ASSERT_EQ(metadata->block_devices.size(), static_cast<size_t>(1)); in TEST_F() 661 EXPECT_EQ(GetBlockDevicePartitionName(metadata->block_devices[0]), "super_a"); in TEST_F() 694 ASSERT_EQ(updated->block_devices.size(), static_cast<size_t>(1)); in TEST_F() [all …]
|
D | reader.cpp | 223 !ValidateTableBounds(header, header.block_devices)) { in ReadMetadataHeader() 323 extent.target_source >= header.block_devices.num_entries) { in ParseMetadata() 340 cursor = buffer.get() + header.block_devices.offset; in ParseMetadata() 341 for (size_t i = 0; i < header.block_devices.num_entries; i++) { in ParseMetadata() 344 cursor += header.block_devices.entry_size; in ParseMetadata() 346 metadata->block_devices.push_back(device); in ParseMetadata() 412 for (auto& block_device : metadata->block_devices) { in AdjustMetadataForSlot()
|
D | builder.cpp | 51 if (device_index_ >= out->block_devices.size()) { in AddTo() 190 const std::vector<BlockDeviceInfo>& block_devices, const std::string& super_partition, in New() argument 193 if (!builder->Init(block_devices, super_partition, metadata_max_size, metadata_slot_count)) { in New() 273 auto source_block_devices = std::move(metadata->block_devices); in UpdateMetadataForOtherSuper() 294 metadata->block_devices.emplace_back(new_device); in UpdateMetadataForOtherSuper() 313 header_.block_devices.entry_size = sizeof(LpMetadataBlockDevice); in MetadataBuilder() 318 block_devices_ = metadata.block_devices; in Init() 389 bool MetadataBuilder::Init(const std::vector<BlockDeviceInfo>& block_devices, in Init() argument 400 if (block_devices.empty()) { in Init() 413 for (const auto& device_info : block_devices) { in Init() [all …]
|
D | builder_test.cpp | 660 ASSERT_EQ(metadata->block_devices.size(), 3); in TEST_F() 661 EXPECT_EQ(GetBlockDevicePartitionName(metadata->block_devices[0]), "system_a"); in TEST_F() 662 EXPECT_EQ(metadata->block_devices[0].size, 256_MiB); in TEST_F() 663 EXPECT_EQ(metadata->block_devices[0].alignment, 786432); in TEST_F() 664 EXPECT_EQ(metadata->block_devices[0].alignment_offset, 229376); in TEST_F() 665 EXPECT_EQ(GetBlockDevicePartitionName(metadata->block_devices[1]), "vendor_a"); in TEST_F() 666 EXPECT_EQ(metadata->block_devices[1].size, 128_MiB); in TEST_F() 667 EXPECT_EQ(metadata->block_devices[1].alignment, 786432); in TEST_F() 668 EXPECT_EQ(metadata->block_devices[1].alignment_offset, 753664); in TEST_F() 669 EXPECT_EQ(GetBlockDevicePartitionName(metadata->block_devices[2]), "product_a"); in TEST_F() [all …]
|
D | utility.cpp | 103 if (metadata.block_devices.empty()) { in GetMetadataSuperBlockDevice() 106 return &metadata.block_devices[0]; in GetMetadataSuperBlockDevice() 130 for (const auto& block_device : metadata.block_devices) { in GetTotalSuperPartitionSize() 138 for (const auto& block_device : metadata.block_devices) { in GetBlockDevicePartitionNames()
|
D | images.cpp | 172 for (const auto& block_device : metadata.block_devices) { in ImageBuilder() 183 return device_images_.size() == metadata_.block_devices.size(); in IsValid() 207 std::string name = GetBlockDevicePartitionName(metadata_.block_devices[i]); in ExportFiles() 425 std::vector<uint64_t> last_sectors(metadata_.block_devices.size()); in CheckExtentOrdering()
|
/system/core/fs_mgr/liblp/include/liblp/ |
D | metadata_format.h | 221 LpMetadataTableDescriptor block_devices; member 394 LpMetadataTableDescriptor block_devices; member
|
D | liblp.h | 43 std::vector<LpMetadataBlockDevice> block_devices; member
|
D | builder.h | 206 static std::unique_ptr<MetadataBuilder> New(const std::vector<BlockDeviceInfo>& block_devices, 379 bool Init(const std::vector<BlockDeviceInfo>& block_devices, const std::string& super_partition,
|
/system/core/fs_mgr/libfiemap/ |
D | metadata.cpp | 82 std::vector<BlockDeviceInfo> block_devices = {device_info}; in OpenOrCreateMetadata() local 84 builder = MetadataBuilder::New(block_devices, super_name, kMaxMetadataSize, 1); in OpenOrCreateMetadata()
|
/system/core/init/ |
D | reboot.cpp | 286 std::vector<MountEntry> block_devices; in UmountPartitions() local 288 if (!FindPartitionsToUmount(&block_devices, &emulated_devices, false)) { in UmountPartitions() 291 if (block_devices.size() == 0) { in UmountPartitions() 303 for (auto& entry : block_devices) { in UmountPartitions() 418 std::vector<MountEntry> block_devices; in TryUmountAndFsck() local 421 if (run_fsck && !FindPartitionsToUmount(&block_devices, &emulated_devices, false)) { in TryUmountAndFsck() 441 for (auto& entry : block_devices) { in TryUmountAndFsck()
|
/system/core/fs_mgr/ |
D | fs_mgr_dm_linear.cpp | 104 const auto& block_device = params.metadata->block_devices[extent.target_source]; in CreateDmTableInternal()
|
/system/core/fastboot/ |
D | fastboot.cpp | 1836 if (metadata.block_devices.size() > 1) { in wipe_super() 1847 for (const auto& block_device : metadata.block_devices) { in wipe_super() 1852 if (metadata.block_devices.size() > 1) { in wipe_super()
|