/system/core/fs_mgr/liblp/ |
D | writer.cpp | 187 static bool WritePrimaryMetadata(int fd, const LpMetadata& metadata, uint32_t slot_number, in WritePrimaryMetadata() argument 190 int64_t primary_offset = GetPrimaryMetadataOffset(metadata.geometry, slot_number); in WritePrimaryMetadata() 205 static bool WriteBackupMetadata(int fd, const LpMetadata& metadata, uint32_t slot_number, in WriteBackupMetadata() argument 208 int64_t backup_offset = GetBackupMetadataOffset(metadata.geometry, slot_number); in WriteBackupMetadata() 223 static bool WriteMetadata(int fd, const LpMetadata& metadata, uint32_t slot_number, in WriteMetadata() argument 227 if (slot_number >= metadata.geometry.metadata_slot_count) { in WriteMetadata() 231 if (!WritePrimaryMetadata(fd, metadata, slot_number, blob, writer)) { in WriteMetadata() 234 if (!WriteBackupMetadata(fd, metadata, slot_number, blob, writer)) { in WriteMetadata() 324 const LpMetadata& metadata, uint32_t slot_number, in UpdatePartitionTable() argument 332 std::string slot_suffix = SlotSuffixForSlotNumber(slot_number); in UpdatePartitionTable() [all …]
|
D | device_test.cpp | 58 auto slot_number = SlotNumberForSlotSuffix(slot_suffix); in TEST_F() local 59 auto super_name = fs_mgr_get_super_partition_name(slot_number); in TEST_F() 60 auto metadata = ReadMetadata(super_name, slot_number); in TEST_F()
|
D | utility.cpp | 83 int64_t GetPrimaryMetadataOffset(const LpMetadataGeometry& geometry, uint32_t slot_number) { in GetPrimaryMetadataOffset() argument 84 CHECK(slot_number < geometry.metadata_slot_count); in GetPrimaryMetadataOffset() 86 geometry.metadata_max_size * slot_number; in GetPrimaryMetadataOffset() 90 int64_t GetBackupMetadataOffset(const LpMetadataGeometry& geometry, uint32_t slot_number) { in GetBackupMetadataOffset() argument 91 CHECK(slot_number < geometry.metadata_slot_count); in GetBackupMetadataOffset() 94 return start + int64_t(geometry.metadata_max_size * slot_number); in GetBackupMetadataOffset() 170 std::string SlotSuffixForSlotNumber(uint32_t slot_number) { in SlotSuffixForSlotNumber() argument 171 CHECK(slot_number == 0 || slot_number == 1); in SlotSuffixForSlotNumber() 172 return (slot_number == 0) ? "_a" : "_b"; in SlotSuffixForSlotNumber()
|
D | reader.cpp | 377 uint32_t slot_number) { in ReadPrimaryMetadata() argument 378 int64_t offset = GetPrimaryMetadataOffset(geometry, slot_number); in ReadPrimaryMetadata() 387 uint32_t slot_number) { in ReadBackupMetadata() argument 388 int64_t offset = GetBackupMetadataOffset(geometry, slot_number); in ReadBackupMetadata() 398 bool AdjustMetadataForSlot(LpMetadata* metadata, uint32_t slot_number) { in AdjustMetadataForSlot() argument 399 std::string slot_suffix = SlotSuffixForSlotNumber(slot_number); in AdjustMetadataForSlot() 440 const std::string& super_partition, uint32_t slot_number) { in ReadMetadata() argument 451 if (slot_number >= geometry.metadata_slot_count) { in ReadMetadata() 457 GetPrimaryMetadataOffset(geometry, slot_number), in ReadMetadata() 458 GetBackupMetadataOffset(geometry, slot_number), in ReadMetadata() [all …]
|
D | reader.h | 45 uint32_t slot_number); 47 uint32_t slot_number);
|
D | utility.h | 53 int64_t GetPrimaryMetadataOffset(const LpMetadataGeometry& geometry, uint32_t slot_number); 57 int64_t GetBackupMetadataOffset(const LpMetadataGeometry& geometry, uint32_t slot_number);
|
D | writer.h | 34 const LpMetadata& metadata, uint32_t slot_number,
|
D | builder.cpp | 176 uint32_t slot_number) { in New() argument 177 std::unique_ptr<LpMetadata> metadata = ReadMetadata(opener, super_partition, slot_number); in New() 185 uint32_t slot_number) { in New() argument 186 return New(PartitionOpener(), super_partition, slot_number); in New()
|
/system/extras/bootctl/ |
D | bootctl.cpp | 119 Slot slot_number) in do_set_active_boot_slot() argument 122 Return<void> ret = module->setActiveBootSlot(slot_number, generate_callback(&cr)); in do_set_active_boot_slot() 127 Slot slot_number) in do_set_slot_as_unbootable() argument 130 Return<void> ret = module->setSlotAsUnbootable(slot_number, generate_callback(&cr)); in do_set_slot_as_unbootable() 147 static int do_is_slot_bootable(sp<V1_0::IBootControl> module, Slot slot_number) in do_is_slot_bootable() argument 149 Return<BoolResult> ret = module->isSlotBootable(slot_number); in do_is_slot_bootable() 154 Slot slot_number) in do_is_slot_marked_successful() argument 156 Return<BoolResult> ret = module->isSlotMarkedSuccessful(slot_number); in do_is_slot_marked_successful() 215 static int do_get_suffix(sp<V1_0::IBootControl> module, Slot slot_number) { in do_get_suffix() argument 219 Return<void> ret = module->getSuffix(slot_number, cb); in do_get_suffix()
|
/system/core/fs_mgr/liblp/include/liblp/ |
D | liblp.h | 60 const LpMetadata& metadata, uint32_t slot_number); 65 const std::string& super_partition, uint32_t slot_number); 70 uint32_t slot_number); 71 std::unique_ptr<LpMetadata> ReadMetadata(const std::string& super_partition, uint32_t slot_number); 117 std::string SlotSuffixForSlotNumber(uint32_t slot_number);
|
D | builder.h | 216 uint32_t slot_number); 220 uint32_t slot_number);
|
/system/core/fs_mgr/libvbmeta/ |
D | builder.cpp | 96 uint8_t slot_number = 0; in AddVBMetaImage() local 98 slot_number = desc->vbmeta_index; in AddVBMetaImage() 104 slot_number = new_slot.value(); in AddVBMetaImage() 108 new_desc.vbmeta_index = slot_number; in AddVBMetaImage() 115 table_.header.in_use |= (1 << slot_number); in AddVBMetaImage() 118 return slot_number; in AddVBMetaImage()
|
D | writer.cpp | 68 Result<void> WriteVBMetaImage(int fd, const uint8_t slot_number, const std::string& vbmeta_image) { in WriteVBMetaImage() argument 69 const uint64_t offset = IndexOffset(slot_number); in WriteVBMetaImage()
|
D | writer.h | 32 android::base::Result<void> WriteVBMetaImage(int fd, const uint8_t slot_number,
|
/system/core/fastboot/device/ |
D | utility.cpp | 55 uint32_t slot_number = SlotNumberForSlotSuffix(slot_suffix); in OpenLogicalPartition() local 56 auto path = FindPhysicalPartition(fs_mgr_get_super_partition_name(slot_number)); in OpenLogicalPartition() 63 .metadata_slot = slot_number, in OpenLogicalPartition() 125 uint32_t slot_number = SlotNumberForSlotSuffix(slot_suffix); in LogicalPartitionExists() local 126 auto path = FindPhysicalPartition(fs_mgr_get_super_partition_name(slot_number)); in LogicalPartitionExists() 131 std::unique_ptr<LpMetadata> metadata = ReadMetadata(path->c_str(), slot_number); in LogicalPartitionExists()
|
D | flashing.cpp | 191 uint32_t slot_number = SlotNumberForSlotSuffix(slot_suffix); in UpdateSuper() local 192 std::unique_ptr<LpMetadata> old_metadata = ReadMetadata(super_name, slot_number); in UpdateSuper()
|
D | variables.cpp | 438 uint32_t slot_number = SlotNumberForSlotSuffix(device->GetCurrentSlot()); in GetSuperPartitionName() local 439 *message = fs_mgr_get_super_partition_name(slot_number); in GetSuperPartitionName()
|
/system/core/fs_mgr/ |
D | fs_mgr_overlayfs.cpp | 438 std::string fs_mgr_overlayfs_super_device(uint32_t slot_number) { in fs_mgr_overlayfs_super_device() argument 439 return kPhysicalDevice + fs_mgr_get_super_partition_name(slot_number); in fs_mgr_overlayfs_super_device() 488 auto slot_number = fs_mgr_overlayfs_slot_number(); in fs_mgr_overlayfs_teardown_scratch() local 489 auto super_device = fs_mgr_overlayfs_super_device(slot_number); 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() 866 auto slot_number = fs_mgr_overlayfs_slot_number(); in GetPhysicalScratchDevice() local 867 auto super_device = fs_mgr_overlayfs_super_device(slot_number); in GetPhysicalScratchDevice() 868 auto path = fs_mgr_overlayfs_super_device(slot_number == 0); in GetPhysicalScratchDevice() 957 auto slot_number = fs_mgr_overlayfs_slot_number(); in CreateDynamicScratch() local [all …]
|
/system/core/fs_mgr/libsnapshot/ |
D | snapshot.cpp | 2560 auto slot_number = SlotNumberForSlotSuffix(device_->GetSlotSuffix()); in HandleImminentDataWipe() local 2561 auto super_path = device_->GetSuperDevice(slot_number); in HandleImminentDataWipe() 2600 auto slot_number = SlotNumberForSlotSuffix(device_->GetSlotSuffix()); in FinishMergeInRecovery() local 2601 auto super_path = device_->GetSuperDevice(slot_number); in FinishMergeInRecovery() 2622 auto slot_number = SlotNumberForSlotSuffix(device_->GetSlotSuffix()); in ProcessUpdateStateOnDataWipe() local 2653 device_->SetSlotAsUnbootable(slot_number); in ProcessUpdateStateOnDataWipe() 2738 auto slot_number = SlotNumberForSlotSuffix(slot_suffix); in RecoveryCreateSnapshotDevices() local 2739 auto super_path = device_->GetSuperDevice(slot_number); in RecoveryCreateSnapshotDevices()
|