Searched refs:partition_name (Results 1 - 18 of 18) sorted by relevance

/system/update_engine/common/
H A Dfake_boot_control.h45 bool GetPartitionDevice(const std::string& partition_name,
50 auto part_it = devices_[slot].find(partition_name);
88 void SetPartitionDevice(const std::string& partition_name, argument
92 devices_[slot][partition_name] = device;
H A Dboot_control_stub.cc34 bool BootControlStub::GetPartitionDevice(const string& partition_name, argument
H A Dboot_control_stub.h41 bool GetPartitionDevice(const std::string& partition_name,
H A Dboot_control_interface.h53 // |partition_name| is a platform-specific name that identifies a partition on
56 virtual bool GetPartitionDevice(const std::string& partition_name,
H A Dutils.cc466 bool SplitPartitionName(const string& partition_name, argument
469 if (!base::StartsWith(partition_name, "/dev/",
471 LOG(ERROR) << "Invalid partition device name: " << partition_name;
475 size_t last_nondigit_pos = partition_name.find_last_not_of("0123456789");
477 (last_nondigit_pos + 1) == partition_name.size()) {
478 LOG(ERROR) << "Unable to parse partition device name: " << partition_name;
483 if (partition_name[last_nondigit_pos] == '_') {
487 partition_name.find_last_not_of("0123456789", last_nondigit_pos - 1);
490 LOG(ERROR) << "Unable to parse partition device name: " << partition_name;
502 if (partition_name[last_nondigit_po
536 string partition_name = disk_name; local
[all...]
H A Dutils.h160 bool SplitPartitionName(const std::string& partition_name,
/system/core/init/
H A Ddevices.h40 const char* partition_name; member in struct:uevent
H A Dinit_first_stage.cpp158 // Creates devices with uevent->partition_name matching one in the member variable
191 if (uevent->partition_name) {
193 // Both required_devices_partition_names_ and uevent->partition_name have A/B
195 auto iter = required_devices_partition_names_.find(uevent->partition_name);
354 // that the uevent was skipped) or there is no uevent->partition_name to
356 if (parent_callback_ret != COLDBOOT_CONTINUE && uevent->partition_name) {
358 // the content of uevent. by-name symlink will be at [0] if uevent->partition_name
365 auto[it, inserted] = by_name_symlink_map_.emplace(uevent->partition_name, links[0]);
367 LOG(ERROR) << "Partition '" << uevent->partition_name
H A Ddevices.cpp429 uevent->partition_name = NULL;
458 uevent->partition_name = msg;
562 if (uevent->partition_name) {
563 p = strdup(uevent->partition_name);
565 if (strcmp(uevent->partition_name, p)) {
566 LOG(VERBOSE) << "Linking partition '" << uevent->partition_name << "' as '" << p << "'";
/system/update_engine/
H A Dboot_control_chromeos.h46 bool GetPartitionDevice(const std::string& partition_name,
69 // |partition_name| and |slot|. In case of invalid data, returns -1.
70 int GetPartitionNumber(const std::string partition_name,
H A Dboot_control_android.h42 bool GetPartitionDevice(const std::string& partition_name,
H A Dboot_control_recovery.h45 bool GetPartitionDevice(const std::string& partition_name,
H A Dboot_control_chromeos.cc142 bool BootControlChromeOS::GetPartitionDevice(const string& partition_name, argument
145 int partition_num = GetPartitionNumber(partition_name, slot);
279 const string partition_name,
292 string partition_lower = base::ToLowerASCII(partition_name);
300 LOG(ERROR) << "Unknown Chrome OS partition name \"" << partition_name << "\"";
278 GetPartitionNumber( const string partition_name, BootControlInterface::Slot slot) const argument
H A Dboot_control_recovery.cc93 bool BootControlRecovery::GetPartitionDevice(const string& partition_name, argument
96 // We can't use fs_mgr to look up |partition_name| because fstab
102 // partition. This helps us locate the disk that |partition_name|
105 // |partition_name| and suffix corresponding to |slot|, e.g.
132 base::FilePath path = misc_device.DirName().Append(partition_name + suffix);
H A Dboot_control_android.cc78 bool BootControlAndroid::GetPartitionDevice(const string& partition_name,
81 // We can't use fs_mgr to look up |partition_name| because fstab
87 // partition. This helps us locate the disk that |partition_name|
90 // |partition_name| and suffix corresponding to |slot|, e.g.
122 base::FilePath path = misc_device.DirName().Append(partition_name + suffix);
/system/core/fs_mgr/
H A Dfs_mgr_avb.cpp392 static bool get_hashtree_descriptor(const std::string& partition_name, argument
413 std::string vbmeta_partition_name(verify_data.vbmeta_images[i].partition_name);
416 vbmeta_partition_name != partition_name) {
417 LWARNING << "Skip vbmeta image at " << verify_data.vbmeta_images[i].partition_name
418 << " for partition: " << partition_name.c_str();
434 if (out_hashtree_desc->partition_name_len != partition_name.length()) {
440 if (hashtree_partition_name == partition_name) {
448 LERROR << "Partition descriptor not found: " << partition_name.c_str();
558 std::string partition_name(basename(fstab_entry->mount_point));
559 if (!avb_validate_utf8((const uint8_t*)partition_name
[all...]
H A Dfs_mgr_avb_ops.cpp117 std::string partition_name = basename(fstab.recs[i].blk_device); local
118 by_name_symlink_map_[partition_name] = fstab.recs[i].blk_device;
/system/update_engine/payload_consumer/
H A Ddelta_performer.cc293 << partitions_[current_partition_].partition_name() << "\"";
347 << partition.partition_name() << " on slot "
359 << partition.partition_name() << " on slot "
366 << " operations to partition \"" << partition.partition_name()
387 "old " + partition.partition_name());
389 "new " + partition.partition_name());
837 install_part.name = partition.partition_name();

Completed in 270 milliseconds