Home
last modified time | relevance | path

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

/system/update_engine/
Ddynamic_partition_control_android.cc148 const std::string& super_device, in MapPartitionInternal() argument
154 .block_device = super_device, in MapPartitionInternal()
176 << super_device << " on device mapper."; in MapPartitionInternal()
187 const std::string& super_device, in MapPartitionOnDeviceMapper() argument
222 super_device, target_partition_name, slot, force_writable, path); in MapPartitionOnDeviceMapper()
296 const std::string& super_device, uint32_t slot) { in LoadMetadataBuilder() argument
297 auto builder = MetadataBuilder::New(PartitionOpener(), super_device, slot); in LoadMetadataBuilder()
300 << " in " << super_device; in LoadMetadataBuilder()
304 << BootControlInterface::SlotName(slot) << " in " << super_device; in LoadMetadataBuilder()
310 const std::string& super_device, in LoadMetadataBuilder() argument
[all …]
Ddynamic_partition_control_android.h95 const std::string& super_device, uint32_t slot);
102 const std::string& super_device,
107 virtual bool StoreMetadata(const std::string& super_device,
119 const std::string& super_device,
200 bool MapPartitionInternal(const std::string& super_device,
/system/core/fs_mgr/
Dfs_mgr_dm_linear.cpp57 const std::string& super_device, std::string* result) { in GetPhysicalPartitionDevicePath() argument
75 dev_string = opener->GetDeviceString(super_device); in GetPhysicalPartitionDevicePath()
93 const auto& super_device = params.block_device; in CreateDmTableInternal() local
106 if (!GetPhysicalPartitionDevicePath(params, block_device, super_device, in CreateDmTableInternal()
154 bool CreateLogicalPartitions(const LpMetadata& metadata, const std::string& super_device) { in CreateLogicalPartitions() argument
156 .block_device = super_device, in CreateLogicalPartitions()
Dfs_mgr_overlayfs.cpp489 auto super_device = fs_mgr_overlayfs_super_device(slot_number); in fs_mgr_overlayfs_teardown_scratch() local
490 if (!fs_mgr_rw_access(super_device)) return true; in fs_mgr_overlayfs_teardown_scratch()
492 auto builder = MetadataBuilder::New(super_device, slot_number); in fs_mgr_overlayfs_teardown_scratch()
503 if (metadata && UpdatePartitionTable(super_device, *metadata.get(), slot_number)) { in fs_mgr_overlayfs_teardown_scratch()
867 auto super_device = fs_mgr_overlayfs_super_device(slot_number); in GetPhysicalScratchDevice() local
869 if (super_device != path) { in GetPhysicalScratchDevice()
872 if (fs_mgr_access(super_device)) { in GetPhysicalScratchDevice()
958 auto super_device = fs_mgr_overlayfs_super_device(slot_number); in CreateDynamicScratch() local
959 auto builder = MetadataBuilder::New(super_device, slot_number); in CreateDynamicScratch()
961 LERROR << "open " << super_device << " metadata"; in CreateDynamicScratch()
[all …]
/system/core/fs_mgr/liblp/
Dwriter.cpp106 const LpMetadataBlockDevice* super_device = GetMetadataSuperBlockDevice(metadata); in ValidateAndSerializeMetadata() local
107 if (!super_device) { in ValidateAndSerializeMetadata()
112 if (total_reserved > super_device->first_logical_sector * LP_SECTOR_SIZE) { in ValidateAndSerializeMetadata()
158 uint64_t last_sector = super_device->size / LP_SECTOR_SIZE; in ValidateAndSerializeMetadata()
162 if (physical_sector < super_device->first_logical_sector || in ValidateAndSerializeMetadata()
174 const LpMetadataBlockDevice* super_device = GetMetadataSuperBlockDevice(metadata); in ValidateMetadataRegion() local
175 if (!super_device) { in ValidateMetadataRegion()
179 if (start + size >= super_device->first_logical_sector * LP_SECTOR_SIZE) { in ValidateMetadataRegion()
Dbuilder_test.cpp165 auto super_device = GetMetadataSuperBlockDevice(*exported.get()); in TEST_F() local
166 ASSERT_NE(super_device, nullptr); in TEST_F()
167 EXPECT_EQ(super_device->first_logical_sector, 1536); in TEST_F()
175 super_device = GetMetadataSuperBlockDevice(*exported.get()); in TEST_F()
176 ASSERT_NE(super_device, nullptr); in TEST_F()
177 EXPECT_EQ(super_device->first_logical_sector, 1536); in TEST_F()
191 super_device = GetMetadataSuperBlockDevice(*exported.get()); in TEST_F()
192 ASSERT_NE(super_device, nullptr); in TEST_F()
193 EXPECT_EQ(super_device->first_logical_sector, 168); in TEST_F()
201 super_device = GetMetadataSuperBlockDevice(*exported.get()); in TEST_F()
[all …]
Dio_test.cpp236 auto super_device = GetMetadataSuperBlockDevice(*imported.get()); in TEST_F() local
237 ASSERT_NE(super_device, nullptr); in TEST_F()
239 uint64_t last_sector = super_device->size / LP_SECTOR_SIZE; in TEST_F()
246 for (uint64_t i = super_device->first_logical_sector; i < last_sector; i++) { in TEST_F()
408 auto super_device = GetMetadataSuperBlockDevice(*exported.get()); in TEST_F() local
409 ASSERT_NE(super_device, nullptr); in TEST_F()
416 ASSERT_GE(lseek(fd, super_device->first_logical_sector * LP_SECTOR_SIZE, SEEK_SET), 0); in TEST_F()
Dreader.cpp349 const LpMetadataBlockDevice* super_device = GetMetadataSuperBlockDevice(*metadata.get()); in ParseMetadata() local
350 if (!super_device) { in ParseMetadata()
358 if (metadata_region > super_device->first_logical_sector * LP_SECTOR_SIZE) { in ParseMetadata()
Dbuilder.cpp231 auto super_device = GetMetadataSuperBlockDevice(*metadata.get()); in NewForUpdate() local
232 if (android::fs_mgr::GetBlockDevicePartitionName(*super_device) != "super" && in NewForUpdate()
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dsnapshot_stub.h41 const std::string& super_device,
Dmock_snapshot.h43 (const std::string& super_device, const std::chrono::milliseconds& timeout_ms),
Dsnapshot.h190 const std::string& super_device, const std::chrono::milliseconds& timeout_ms = {}) = 0;
294 const std::string& super_device,
/system/core/fs_mgr/libsnapshot/
Dsnapshot.cpp1238 auto super_device = device_->GetSuperDevice(slot); in ReadCurrentMetadata() local
1239 auto metadata = android::fs_mgr::ReadMetadata(opener, super_device, slot); in ReadCurrentMetadata()
1241 LOG(ERROR) << "Could not read dynamic partition metadata for device: " << super_device; in ReadCurrentMetadata()
1307 auto super_device = device_->GetSuperDevice(target_slot); in GetSnapshotFlashingStatus() local
1308 auto metadata = android::fs_mgr::ReadMetadata(opener, super_device, target_slot); in GetSnapshotFlashingStatus()
1538 const std::string& super_device, const std::chrono::milliseconds& timeout_ms) { in CreateLogicalAndSnapshotPartitions() argument
1546 auto metadata = android::fs_mgr::ReadMetadata(opener, super_device, slot); in CreateLogicalAndSnapshotPartitions()
1548 LOG(ERROR) << "Could not read dynamic partition metadata for device: " << super_device; in CreateLogicalAndSnapshotPartitions()
1560 .block_device = super_device, in CreateLogicalAndSnapshotPartitions()
2445 auto super_device = device_->GetSuperDevice(slot); in UnmapAllPartitions() local
[all …]
Dpartition_cow_creator_test.cpp82 BlockDeviceInfo super_device("super", kSuperSize, 0, 0, 4_KiB); in TEST_F() local
83 std::vector<BlockDeviceInfo> devices = {super_device}; in TEST_F()
Dsnapshot_fuzz_utils.cpp454 BlockDeviceInfo super_device("super", SUPER_IMAGE_SIZE, 0, 0, 4096); in CheckWriteSuperMetadata() local
455 std::vector<BlockDeviceInfo> devices = {super_device}; in CheckWriteSuperMetadata()
Dsnapshot_test.cpp167 BlockDeviceInfo super_device("super", kSuperSize, 0, 0, 4096); in FormatFakeSuper() local
168 std::vector<BlockDeviceInfo> devices = {super_device}; in FormatFakeSuper()
/system/core/fastboot/device/
Dcommands.cpp393 auto super_device = FindPhysicalPartition(fs_mgr_get_super_partition_name(slot_number_)); in PartitionBuilder() local
394 if (!super_device) { in PartitionBuilder()
397 super_device_ = *super_device; in PartitionBuilder()
/system/extras/partition_tools/
Dlpdump.cc273 auto super_device = GetMetadataSuperBlockDevice(metadata); in DumpMetadataSize() local
274 uint64_t metadata_size = super_device->first_logical_sector * LP_SECTOR_SIZE; in DumpMetadataSize()
/system/core/fastboot/
Dfastboot.cpp1699 auto super_device = GetMetadataSuperBlockDevice(metadata); in wipe_super() local
1701 auto super_bdev_name = android::fs_mgr::GetBlockDevicePartitionName(*super_device); in wipe_super()