/system/update_engine/payload_consumer/ |
D | filesystem_verifier_action.cc | 87 const InstallPlan::Partition& partition = in StartPartitionHashing() local 93 part_path = partition.source_path; in StartPartitionHashing() 94 partition_size_ = partition.source_size; in StartPartitionHashing() 97 part_path = partition.target_path; in StartPartitionHashing() 98 partition_size_ = partition.target_size; in StartPartitionHashing() 105 << partition.name << ") because size is 0."; in StartPartitionHashing() 111 << partition.name in StartPartitionHashing() 118 << partition.name << ") on device " << part_path; in StartPartitionHashing() 139 if (!verity_writer_->Init(partition)) { in StartPartitionHashing() 150 const InstallPlan::Partition& partition = in ScheduleRead() local [all …]
|
D | install_plan.cc | 56 for (const auto& partition : partitions) { in Dump() local 60 partition.name.c_str(), in Dump() 61 partition.source_size, in Dump() 62 partition.target_size, in Dump() 63 utils::ToString(partition.run_postinstall).c_str()); in Dump() 100 for (Partition& partition : partitions) { in LoadPartitionsFromSlots() 102 partition.source_size > 0) { in LoadPartitionsFromSlots() 104 partition.name, source_slot, &partition.source_path) && in LoadPartitionsFromSlots() 107 partition.source_path.clear(); in LoadPartitionsFromSlots() 111 partition.target_size > 0) { in LoadPartitionsFromSlots() [all …]
|
D | verity_writer_stub.cc | 29 bool VerityWriterStub::Init(const InstallPlan::Partition& partition) { in Init() argument 30 return partition.hash_tree_size == 0 && partition.fec_size == 0; in Init()
|
D | postinstall_runner_action.cc | 106 const InstallPlan::Partition& partition = in PerformPartitionPostinstall() local 110 utils::MakePartitionNameForMount(partition.target_path); in PerformPartitionPostinstall() 112 LOG(ERROR) << "Cannot make mountable device from " << partition.target_path; in PerformPartitionPostinstall() 134 base::FilePath postinstall_path(partition.postinstall_path); in PerformPartitionPostinstall() 138 << partition.postinstall_path; in PerformPartitionPostinstall() 147 << partition.postinstall_path; in PerformPartitionPostinstall() 166 partition.filesystem_type, in PerformPartitionPostinstall() 172 LOG(INFO) << "Performing postinst (" << partition.postinstall_path << " at " in PerformPartitionPostinstall() 173 << abs_path << ") installed on device " << partition.target_path in PerformPartitionPostinstall() 179 LOG(INFO) << "Format file for new " << partition.postinstall_path in PerformPartitionPostinstall() [all …]
|
D | delta_performer.cc | 354 const PartitionUpdate& partition = partitions_[current_partition_]; in OpenCurrentPartition() local 370 << partition.partition_name() << " on slot " in OpenCurrentPartition() 390 << partition.partition_name() << " on slot " in OpenCurrentPartition() 396 LOG(INFO) << "Applying " << partition.operations().size() in OpenCurrentPartition() 397 << " operations to partition \"" << partition.partition_name() in OpenCurrentPartition() 422 const PartitionUpdate& partition = partitions_[current_partition_]; in OpenCurrentECCPartition() local 431 << partition.partition_name() << " on slot " in OpenCurrentECCPartition() 455 for (const PartitionUpdate& partition : partitions) { in LogPartitionInfo() local 456 if (partition.has_old_partition_info()) { in LogPartitionInfo() 457 LogPartitionInfoHash(partition.old_partition_info(), in LogPartitionInfo() [all …]
|
/system/core/fs_mgr/liblp/ |
D | builder.cpp | 244 for (const auto& partition : metadata.partitions) { in Init() local 245 std::string group_name = GetPartitionGroupName(metadata.groups[partition.group_index]); in Init() 247 AddPartition(GetPartitionName(partition), group_name, partition.attributes); in Init() 251 ImportExtents(builder, metadata, partition); in Init() 456 for (const auto& partition : partitions_) { in FindPartition() local 457 if (partition->name() == name) { in FindPartition() 458 return partition.get(); in FindPartition() 475 for (const auto& partition : partitions_) { in TotalSizeOfGroup() local 476 if (partition->group_name() != group->name()) { in TotalSizeOfGroup() 479 total += partition->BytesOnDisk(); in TotalSizeOfGroup() [all …]
|
D | reader.cpp | 251 LpMetadataPartition partition; in ParseMetadata() local 252 memcpy(&partition, cursor, sizeof(partition)); in ParseMetadata() 255 if (partition.attributes & ~LP_PARTITION_ATTRIBUTE_MASK) { in ParseMetadata() 259 if (partition.first_extent_index + partition.num_extents < partition.first_extent_index) { in ParseMetadata() 263 if (partition.first_extent_index + partition.num_extents > header.extents.num_entries) { in ParseMetadata() 267 if (partition.group_index >= header.groups.num_entries) { in ParseMetadata() 272 metadata->partitions.push_back(partition); in ParseMetadata() 359 for (auto& partition : metadata->partitions) { in AdjustMetadataForSlot() local 360 if (!(partition.attributes & LP_PARTITION_ATTR_SLOT_SUFFIXED)) { in AdjustMetadataForSlot() 363 std::string partition_name = GetPartitionName(partition) + slot_suffix; in AdjustMetadataForSlot() [all …]
|
D | builder_test.cpp | 50 Partition* partition = builder->AddPartition("system", LP_PARTITION_ATTR_READONLY); in TEST_F() local 51 ASSERT_NE(partition, nullptr); in TEST_F() 52 EXPECT_EQ(partition->name(), "system"); in TEST_F() 53 EXPECT_EQ(partition->attributes(), LP_PARTITION_ATTR_READONLY); in TEST_F() 54 EXPECT_EQ(partition->size(), 0); in TEST_F() 55 EXPECT_EQ(builder->FindPartition("system"), partition); in TEST_F() 295 Partition* partition = builder->AddPartition("system", LP_PARTITION_ATTR_READONLY); in TEST_F() local 296 ASSERT_NE(partition, nullptr); in TEST_F() 299 partition = builder->AddPartition("system", LP_PARTITION_ATTR_READONLY); in TEST_F() 300 EXPECT_EQ(partition, nullptr); in TEST_F() [all …]
|
D | images.cpp | 251 for (const auto& partition : metadata_.partitions) { in Build() local 252 auto iter = images_.find(GetPartitionName(partition)); in Build() 256 if (!AddPartitionImage(partition, iter->second)) { in Build() 279 bool ImageBuilder::AddPartitionImage(const LpMetadataPartition& partition, in AddPartitionImage() argument 282 uint32_t extent_index = partition.first_extent_index; in AddPartitionImage() 286 LERROR << "Partition should only have linear extents: " << GetPartitionName(partition); in AddPartitionImage() 292 LERROR << "Could not open image for partition: " << GetPartitionName(partition); in AddPartitionImage() 302 uint64_t partition_size = ComputePartitionSize(partition); in AddPartitionImage() 304 LERROR << "Image for partition '" << GetPartitionName(partition) in AddPartitionImage() 334 if (extent_index >= partition.first_extent_index + partition.num_extents) { in AddPartitionImage() [all …]
|
/system/core/fs_mgr/ |
D | fs_mgr_dm_linear.cpp | 75 static bool CreateDmTable(const LpMetadata& metadata, const LpMetadataPartition& partition, in CreateDmTable() argument 78 for (size_t i = 0; i < partition.num_extents; i++) { in CreateDmTable() 79 const auto& extent = metadata.extents[partition.first_extent_index + i]; in CreateDmTable() 105 if (partition.attributes & LP_PARTITION_ATTR_READONLY) { in CreateDmTable() 111 static bool CreateLogicalPartition(const LpMetadata& metadata, const LpMetadataPartition& partition, in CreateLogicalPartition() argument 117 if (!CreateDmTable(metadata, partition, super_device, &table)) { in CreateLogicalPartition() 123 std::string name = GetPartitionName(partition); in CreateLogicalPartition() 157 for (const auto& partition : metadata.partitions) { in CreateLogicalPartitions() local 158 if (!partition.num_extents) { in CreateLogicalPartitions() 159 LINFO << "Skipping zero-length logical partition: " << GetPartitionName(partition); in CreateLogicalPartitions() [all …]
|
D | fs_mgr_remount.cpp | 211 auto partition = std::string(argv[optind]); in main() local 212 if (partition.empty()) continue; in main() 213 if (partition == "/") partition = "/system"; in main() 214 auto find_part = [&partition](const auto& entry) { in main() 216 if (partition == mount_point) return true; in main() 217 if (partition == android::base::Basename(mount_point)) return true; in main() 232 partition = system_mount_point(*wrap); in main()
|
/system/extras/partition_tools/ |
D | lpdump.cc | 130 for (auto partition : builder->ListPartitionsInGroup(group_name)) { in MergeMetadata() local 131 auto partition_name = partition->name(); in MergeMetadata() 136 partition_proto->set_size(partition->size()); in MergeMetadata() 159 DynamicPartitionsDeviceInfoProto* proto, const std::string& partition) { in FindPartition() argument 161 if (p.name() == partition) { in FindPartition() 175 std::string partition = match[1]; in GetReadonlyPartitionName() local 176 return partition.empty() ? "system" : partition; in GetReadonlyPartitionName() 189 auto partition = GetReadonlyPartitionName(entry); in MergeFsUsage() local 190 if (!partition) { in MergeFsUsage() 203 auto partition_proto = FindPartition(proto, *partition); in MergeFsUsage() [all …]
|
D | README.md | 5 lpmake is a command-line tool for generating a "super" partition image. It can currently generate t… 11 * `-d,--device-size` - The size of the "super" partition on the device. It must match exactly, and … 12 * `-m,--metadata-size` - The maximum size that partition metadata may consume. A partition entry us… 14 * `-p,--partition=DATA` - Add a partition to the metadata. At least one partition must be defined. … 19 …is useful for devices with a minimum I/O request size where mis-aligned partition boundaries could… 20 * `--alignment-offset=N` - In some cases, the "super" partition is misaligned within its parent blo… 23 …or the partition named NAME. The file can be a normal file or a sparse image, but the destination … 25 Example usage. This specifies a 10GB super partition for an A/B device, with a single 64MiB "cache"… 38 lpdump displays pretty-printed partition metadata. It accepts a single argument, which can be:
|
D | lpunpack.cc | 48 bool ExtractPartition(const LpMetadataPartition* partition); 199 for (const auto& partition : metadata_->partitions) { in BuildPartitionList() local 200 auto name = GetPartitionName(partition); in BuildPartitionList() 202 partition_map_[name] = &partition; in BuildPartitionList() 214 bool ImageExtractor::ExtractPartition(const LpMetadataPartition* partition) { in ExtractPartition() argument 217 for (uint32_t i = 0; i < partition->num_extents; i++) { in ExtractPartition() 218 uint32_t index = partition->first_extent_index + i; in ExtractPartition() 233 std::string output_path = output_dir_ + "/" + GetPartitionName(*partition) + ".img"; in ExtractPartition() 243 for (uint32_t i = 0; i < partition->num_extents; i++) { in ExtractPartition() 244 uint32_t index = partition->first_extent_index + i; in ExtractPartition()
|
/system/core/fastboot/ |
D | fastboot_driver.cpp | 76 RetCode FastBootDriver::CreatePartition(const std::string& partition, const std::string& size) { in CreatePartition() argument 77 return RawCommand(FB_CMD_CREATE_PARTITION ":" + partition + ":" + size, in CreatePartition() 78 "Creating '" + partition + "'"); in CreatePartition() 81 RetCode FastBootDriver::DeletePartition(const std::string& partition) { in DeletePartition() argument 82 return RawCommand(FB_CMD_DELETE_PARTITION ":" + partition, "Deleting '" + partition + "'"); in DeletePartition() 85 RetCode FastBootDriver::Erase(const std::string& partition, std::string* response, in Erase() argument 87 return RawCommand(FB_CMD_ERASE ":" + partition, "Erasing '" + partition + "'", response, info); in Erase() 90 RetCode FastBootDriver::Flash(const std::string& partition, std::string* response, in Flash() argument 92 return RawCommand(FB_CMD_FLASH ":" + partition, "Writing '" + partition + "'", response, info); in Flash() 114 RetCode FastBootDriver::ResizePartition(const std::string& partition, const std::string& size) { in ResizePartition() argument [all …]
|
D | fastboot.cpp | 954 static void flash_buf(const std::string& partition, struct fastboot_buffer *buf) in flash_buf() argument 960 (partition == "vbmeta" || partition == "vbmeta_a" || partition == "vbmeta_b")) { in flash_buf() 976 fb->FlashPartition(partition, pair.first, pair.second, i + 1, sparse_files.size()); in flash_buf() 981 fb->FlashPartition(partition, buf->fd, buf->sz); in flash_buf() 1121 static bool is_logical(const std::string& partition) { in is_logical() argument 1123 return fb->GetVar("is-logical:" + partition, &value) == fastboot::SUCCESS && value == "yes"; in is_logical() 1248 auto resize_partition = [](const std::string& partition) -> void { in Flash() argument 1249 if (is_logical(partition)) { in Flash() 1250 fb->ResizePartition(partition, "0"); in Flash() 1469 const std::string& partition, int skip_if_not_supported, in fb_perform_format() argument [all …]
|
D | fastboot_driver.h | 77 RetCode CreatePartition(const std::string& partition, const std::string& size); 78 RetCode DeletePartition(const std::string& partition); 87 RetCode Download(const std::string& partition, struct sparse_file* s, uint32_t sz, 92 RetCode Erase(const std::string& partition, std::string* response = nullptr, 94 RetCode Flash(const std::string& partition, std::string* response = nullptr, 102 RetCode ResizePartition(const std::string& partition, const std::string& size); 109 RetCode FlashPartition(const std::string& partition, const std::vector<char>& data); 110 RetCode FlashPartition(const std::string& partition, int fd, uint32_t sz); 111 RetCode FlashPartition(const std::string& partition, sparse_file* s, uint32_t sz,
|
/system/update_engine/payload_generator/ |
D | payload_file.cc | 142 PartitionUpdate* partition = manifest_.add_partitions(); in WritePayload() local 143 partition->set_partition_name(part.name); in WritePayload() 145 partition->set_run_postinstall(true); in WritePayload() 147 partition->set_postinstall_path(part.postinstall.path); in WritePayload() 149 partition->set_filesystem_type(part.postinstall.filesystem_type); in WritePayload() 150 partition->set_postinstall_optional(part.postinstall.optional); in WritePayload() 154 *partition->mutable_hash_tree_data_extent() = in WritePayload() 156 *partition->mutable_hash_tree_extent() = part.verity.hash_tree_extent; in WritePayload() 157 partition->set_hash_tree_algorithm(part.verity.hash_tree_algorithm); in WritePayload() 159 partition->set_hash_tree_salt(part.verity.hash_tree_salt.data(), in WritePayload() [all …]
|
/system/core/fs_mgr/libfs_avb/ |
D | avb_ops.cpp | 49 static AvbIOResult read_from_partition(AvbOps* ops, const char* partition, int64_t offset, in read_from_partition() argument 52 partition, offset, num_bytes, buffer, out_num_read); in read_from_partition() 89 const char* partition ATTRIBUTE_UNUSED, in dummy_get_unique_guid_for_partition() 95 snprintf(guid_buf, guid_buf_size, "1234-fake-guid-for:%s", partition); in dummy_get_unique_guid_for_partition() 100 const char* partition ATTRIBUTE_UNUSED, in dummy_get_size_of_partition() 171 AvbIOResult FsManagerAvbOps::ReadFromPartition(const char* partition, int64_t offset, in ReadFromPartition() argument 174 std::string path = "/dev/block/by-name/"s + partition; in ReadFromPartition() 184 path = GetLogicalPath(partition); in ReadFromPartition()
|
/system/core/fastboot/device/ |
D | utility.cpp | 106 for (const auto& partition : metadata.partitions) { in FindLogicalPartition() local 107 if (GetPartitionName(partition) == name) { in FindLogicalPartition() 108 return &partition; in FindLogicalPartition() 126 const LpMetadataPartition* partition = FindLogicalPartition(*metadata.get(), name); in LogicalPartitionExists() local 127 if (!partition) { in LogicalPartitionExists() 131 *is_zero_length = (partition->num_extents == 0); in LogicalPartitionExists() 183 for (const auto& partition : metadata->partitions) { in ListPartitions() local 184 std::string partition_name = GetPartitionName(partition); in ListPartitions()
|
D | flashing.cpp | 59 auto partition = android::base::Basename(entry.mount_point); in WipeOverlayfsForPartition() local 61 partition = "system"; in WipeOverlayfsForPartition() 64 if ((partition + device->GetCurrentSlot()) == partition_name) { in WipeOverlayfsForPartition() 168 for (const auto& partition : old_metadata->partitions) { in UpdateSuper() local 170 std::string partition_name = GetPartitionName(partition); in UpdateSuper()
|
/system/update_engine/ |
D | boot_control_android_unittest.cc | 185 for (const auto& partition : group.partitions) { in NewFakeMetadata() local 186 auto p = builder->AddPartition(partition.name, group.name, 0 /* attr */); in NewFakeMetadata() 187 EXPECT_TRUE(p && builder->ResizePartition(p, partition.size)); in NewFakeMetadata() 204 for (const auto& partition : group.partitions) { in MatchAndExplain() local 205 auto p = metadata->FindPartition(partition.name); in MatchAndExplain() 209 *listener << "No partition " << partition.name; in MatchAndExplain() 213 if (p->size() != partition.size) { in MatchAndExplain() 216 *listener << "Partition " << partition.name << " has size " in MatchAndExplain() 217 << p->size() << ", expected " << partition.size; in MatchAndExplain() 223 *listener << "Partition " << partition.name << " has group " in MatchAndExplain() [all …]
|
/system/libvintf/ |
D | VintfObjectRecovery.cpp | 104 auto partition = GetPartition(path); in getFileSystem() local 105 if (partition.empty()) { in getFileSystem() 109 status_t err = mMounter->mount(partition); in getFileSystem() 117 if (partition == "/system") { in getFileSystem()
|
/system/update_engine/scripts/ |
D | payload_info.py | 74 for partition in manifest.partitions: 75 DisplayValue(' Number of "%s" ops' % partition.partition_name, 76 len(partition.operations)) 223 for partition in self.payload.manifest.partitions: 224 self._DisplayOps('%s install operations' % partition.partition_name, 225 partition.operations)
|
/system/sepolicy/public/ |
D | sgdisk.te | 5 # Allowed to read/write low-level partition tables 18 # Force a re-read of the partition table. 28 # Used to probe kernel to reload partition tables
|