Home
last modified time | relevance | path

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

/aosp14/system/core/fs_mgr/
H A 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()
H A Dfs_mgr_overlayfs.cpp534 auto super_device = fs_mgr_overlayfs_super_device(slot_number); in fs_mgr_overlayfs_teardown_scratch() local
535 if (!fs_mgr_rw_access(super_device)) { in fs_mgr_overlayfs_teardown_scratch()
539 auto builder = MetadataBuilder::New(super_device, slot_number); in fs_mgr_overlayfs_teardown_scratch()
988 auto super_device = fs_mgr_overlayfs_super_device(slot_number); in CreateDynamicScratch() local
989 auto builder = MetadataBuilder::New(super_device, slot_number); in CreateDynamicScratch()
991 LERROR << "open " << super_device << " metadata"; in CreateDynamicScratch()
1057 .block_device = super_device, in CreateDynamicScratch()
1142 auto super_device = fs_mgr_overlayfs_super_device(slot_number); in CanUseSuperPartition() local
1146 auto metadata = ReadMetadata(super_device, slot_number); in CanUseSuperPartition()
1479 auto metadata = ReadCurrentMetadata(super_device); in EnsureScratchMapped()
[all …]
/aosp14/system/core/fs_mgr/liblp/
H A Dwriter.cpp106 const LpMetadataBlockDevice* super_device = GetMetadataSuperBlockDevice(metadata); variable
107 if (!super_device) {
112 if (total_reserved > super_device->first_logical_sector * LP_SECTOR_SIZE) {
158 uint64_t last_sector = super_device->size / LP_SECTOR_SIZE;
162 if (physical_sector < super_device->first_logical_sector ||
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()
H A Dbuilder_test.cpp168 ASSERT_NE(super_device, nullptr); in TEST_F()
169 EXPECT_EQ(super_device->first_logical_sector, 1536); in TEST_F()
177 super_device = GetMetadataSuperBlockDevice(*exported.get()); in TEST_F()
178 ASSERT_NE(super_device, nullptr); in TEST_F()
179 EXPECT_EQ(super_device->first_logical_sector, 1536); in TEST_F()
194 ASSERT_NE(super_device, nullptr); in TEST_F()
195 EXPECT_EQ(super_device->first_logical_sector, 168); in TEST_F()
204 ASSERT_NE(super_device, nullptr); in TEST_F()
205 EXPECT_EQ(super_device->first_logical_sector, 154); in TEST_F()
337 ASSERT_NE(super_device, nullptr); in TEST_F()
[all …]
H A Dio_test.cpp240 auto super_device = GetMetadataSuperBlockDevice(*imported.get()); in TEST_F() local
241 ASSERT_NE(super_device, nullptr); in TEST_F()
243 uint64_t last_sector = super_device->size / LP_SECTOR_SIZE; in TEST_F()
250 for (uint64_t i = super_device->first_logical_sector; i < last_sector; i++) { in TEST_F()
412 auto super_device = GetMetadataSuperBlockDevice(*exported.get()); in TEST_F() local
413 ASSERT_NE(super_device, nullptr); in TEST_F()
420 ASSERT_GE(lseek(fd, super_device->first_logical_sector * LP_SECTOR_SIZE, SEEK_SET), 0); in TEST_F()
H A 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()
H A Dbuilder.cpp231 auto super_device = GetMetadataSuperBlockDevice(*metadata.get()); in NewForUpdate() local
232 if (android::fs_mgr::GetBlockDevicePartitionName(*super_device) != "super" && in NewForUpdate()
/aosp14/system/core/fs_mgr/libsnapshot/include/libsnapshot/
H A Dsnapshot_stub.h49 const std::string& super_device,
H A Dmock_snapshot.h52 (const std::string& super_device, const std::chrono::milliseconds& timeout_ms),
H A Dsnapshot.h237 const std::string& super_device, const std::chrono::milliseconds& timeout_ms = {}) = 0;
371 const std::string& super_device,
672 bool MapAllPartitions(LockedFile* lock, const std::string& super_device, uint32_t slot,
/aosp14/system/core/fs_mgr/libsnapshot/
H A Dsnapshot.cpp1851 auto super_device = device_->GetSuperDevice(slot); in ReadCurrentMetadata() local
1852 auto metadata = android::fs_mgr::ReadMetadata(opener, super_device, slot); in ReadCurrentMetadata()
1920 auto super_device = device_->GetSuperDevice(target_slot); in GetSnapshotFlashingStatus() local
2258 return MapAllPartitions(lock.get(), super_device, slot, timeout_ms); in CreateLogicalAndSnapshotPartitions()
2264 auto metadata = android::fs_mgr::ReadMetadata(opener, super_device, slot); in MapAllPartitions()
2282 .block_device = super_device, in MapAllPartitions()
2745 auto super_device = device_->GetSuperDevice(slot_number); in MapAllSnapshots() local
2749 << super_device; in MapAllSnapshots()
2760 .block_device = super_device, in MapAllSnapshots()
3742 auto super_device = device_->GetSuperDevice(slot); in UnmapAllPartitionsInRecovery() local
[all …]
H A Dpartition_cow_creator_test.cpp88 BlockDeviceInfo super_device("super", kSuperSize, 0, 0, 4_KiB); in TEST_F() local
89 std::vector<BlockDeviceInfo> devices = {super_device}; in TEST_F()
H A Dsnapshot_test.cpp279 BlockDeviceInfo super_device("super", kSuperSize, 0, 0, 4096); in FormatFakeSuper() local
280 std::vector<BlockDeviceInfo> devices = {super_device}; in FormatFakeSuper()
/aosp14/system/core/fastboot/device/
H A Dcommands.cpp470 auto super_device = FindPhysicalPartition(fs_mgr_get_super_partition_name(slot_number_)); in PartitionBuilder() local
471 if (!super_device) { in PartitionBuilder()
474 super_device_ = *super_device; in PartitionBuilder()
/aosp14/system/core/fastboot/
H A Dfastboot.cpp2128 auto super_device = GetMetadataSuperBlockDevice(metadata); in wipe_super() local
2130 auto super_bdev_name = android::fs_mgr::GetBlockDevicePartitionName(*super_device); in wipe_super()