Home
last modified time | relevance | path

Searched refs:super_device (Results 1 – 12 of 12) sorted by relevance

/system/update_engine/
Ddynamic_partition_control_android.cc62 const std::string& super_device, in MapPartitionInternal() argument
67 if (!CreateLogicalPartition(super_device.c_str(), in MapPartitionInternal()
74 << super_device << " on device mapper."; in MapPartitionInternal()
85 const std::string& super_device, in MapPartitionOnDeviceMapper() argument
120 super_device, target_partition_name, slot, force_writable, path); in MapPartitionOnDeviceMapper()
177 const std::string& super_device, in LoadMetadataBuilder() argument
185 PartitionOpener(), super_device, source_slot, target_slot); in LoadMetadataBuilder()
188 MetadataBuilder::New(PartitionOpener(), super_device, source_slot); in LoadMetadataBuilder()
194 << super_device; in LoadMetadataBuilder()
199 << super_device; in LoadMetadataBuilder()
[all …]
Ddynamic_partition_control_android.h34 bool MapPartitionOnDeviceMapper(const std::string& super_device,
47 const std::string& super_device,
50 bool StoreMetadata(const std::string& super_device,
59 bool MapPartitionInternal(const std::string& super_device,
Ddynamic_partition_control_interface.h49 const std::string& super_device,
83 const std::string& super_device,
88 virtual bool StoreMetadata(const std::string& super_device,
Dboot_control_android.cc126 string super_device = in GetDynamicPartitionDevice() local
130 super_device, slot, BootControlInterface::kInvalidSlot); in GetDynamicPartitionDevice()
174 super_device, partition_name_suffix, slot, force_writable, device)) { in GetDynamicPartitionDevice()
/system/core/fs_mgr/
Dfs_mgr_dm_linear.cpp56 const std::string& super_device, in GetPhysicalPartitionDevicePath() argument
66 path = super_device; in GetPhysicalPartitionDevicePath()
76 const std::string& super_device, DmTable* table) { in CreateDmTable() argument
88 if (!GetPhysicalPartitionDevicePath(metadata, block_device, super_device, &path)) { in CreateDmTable()
113 const std::string& super_device, std::string* path) { in CreateLogicalPartition() argument
117 if (!CreateDmTable(metadata, partition, super_device, &table)) { in CreateLogicalPartition()
156 bool CreateLogicalPartitions(const LpMetadata& metadata, const std::string& super_device) { in CreateLogicalPartitions() argument
163 if (!CreateLogicalPartition(metadata, partition, false, {}, super_device, &path)) { in CreateLogicalPartitions()
Dfs_mgr_overlayfs.cpp426 auto super_device = fs_mgr_overlayfs_super_device(slot_number); in fs_mgr_overlayfs_teardown_scratch() local
427 if (!fs_mgr_rw_access(super_device)) return true; in fs_mgr_overlayfs_teardown_scratch()
433 auto builder = MetadataBuilder::New(super_device, slot_number); in fs_mgr_overlayfs_teardown_scratch()
445 if (metadata && UpdatePartitionTable(super_device, *metadata.get(), slot_number)) { in fs_mgr_overlayfs_teardown_scratch()
615 auto super_device = fs_mgr_overlayfs_super_device(slot_number); in fs_mgr_overlayfs_scratch_device() local
617 if (super_device == path) { in fs_mgr_overlayfs_scratch_device()
623 if (fs_mgr_access(super_device)) return ""; in fs_mgr_overlayfs_scratch_device()
665 auto super_device = fs_mgr_overlayfs_super_device(slot_number); in fs_mgr_overlayfs_create_scratch() local
666 if (!fs_mgr_rw_access(super_device)) return false; in fs_mgr_overlayfs_create_scratch()
668 auto builder = MetadataBuilder::New(super_device, slot_number); in fs_mgr_overlayfs_create_scratch()
[all …]
/system/core/fs_mgr/liblp/
Dwriter.cpp104 const LpMetadataBlockDevice* super_device = GetMetadataSuperBlockDevice(metadata); in ValidateAndSerializeMetadata() local
105 if (!super_device) { in ValidateAndSerializeMetadata()
110 if (total_reserved > super_device->first_logical_sector * LP_SECTOR_SIZE) { in ValidateAndSerializeMetadata()
151 uint64_t last_sector = super_device->size / LP_SECTOR_SIZE; in ValidateAndSerializeMetadata()
155 if (physical_sector < super_device->first_logical_sector || in ValidateAndSerializeMetadata()
167 const LpMetadataBlockDevice* super_device = GetMetadataSuperBlockDevice(metadata); in ValidateMetadataRegion() local
168 if (!super_device) { in ValidateMetadataRegion()
172 if (start + size >= super_device->first_logical_sector * LP_SECTOR_SIZE) { in ValidateMetadataRegion()
Dbuilder_test.cpp157 auto super_device = GetMetadataSuperBlockDevice(*exported.get()); in TEST_F() local
158 ASSERT_NE(super_device, nullptr); in TEST_F()
159 EXPECT_EQ(super_device->first_logical_sector, 1536); in TEST_F()
167 super_device = GetMetadataSuperBlockDevice(*exported.get()); in TEST_F()
168 ASSERT_NE(super_device, nullptr); in TEST_F()
169 EXPECT_EQ(super_device->first_logical_sector, 1472); in TEST_F()
183 super_device = GetMetadataSuperBlockDevice(*exported.get()); in TEST_F()
184 ASSERT_NE(super_device, nullptr); in TEST_F()
185 EXPECT_EQ(super_device->first_logical_sector, 174); in TEST_F()
193 super_device = GetMetadataSuperBlockDevice(*exported.get()); in TEST_F()
[all …]
Dio_test.cpp233 auto super_device = GetMetadataSuperBlockDevice(*imported.get()); in TEST() local
234 ASSERT_NE(super_device, nullptr); in TEST()
236 uint64_t last_sector = super_device->size / LP_SECTOR_SIZE; in TEST()
243 for (uint64_t i = super_device->first_logical_sector; i < last_sector; i++) { in TEST()
405 auto super_device = GetMetadataSuperBlockDevice(*exported.get()); in TEST() local
406 ASSERT_NE(super_device, nullptr); in TEST()
413 ASSERT_GE(lseek(fd, super_device->first_logical_sector * LP_SECTOR_SIZE, SEEK_SET), 0); in TEST()
Dreader.cpp308 const LpMetadataBlockDevice* super_device = GetMetadataSuperBlockDevice(*metadata.get()); in ParseMetadata() local
309 if (!super_device) { in ParseMetadata()
317 if (metadata_region > super_device->first_logical_sector * LP_SECTOR_SIZE) { in ParseMetadata()
Dbuilder.cpp171 auto super_device = GetMetadataSuperBlockDevice(*metadata.get()); in NewForUpdate() local
172 if (GetBlockDevicePartitionName(*super_device) == "super") { in NewForUpdate()
/system/core/fastboot/device/
Dcommands.cpp344 auto super_device = FindPhysicalPartition(fs_mgr_get_super_partition_name(slot_number_)); in PartitionBuilder() local
345 if (!super_device) { in PartitionBuilder()
348 super_device_ = *super_device; in PartitionBuilder()