Home
last modified time | relevance | path

Searched refs:blk_device (Results 1 – 25 of 46) sorted by relevance

12

/aosp12/system/core/fs_mgr/
H A Dfs_mgr.cpp159 if (!Realpath(blk_device, &real_path)) { in realpath()
160 real_path = blk_device; in realpath()
269 << realpath(blk_device); in check_fs()
274 << realpath(blk_device); in check_fs()
434 blk_device.c_str()}; in tune_reserved_size()
437 << blk_device; in tune_reserved_size()
1084 if (entry->blk_device[0] == '/') { in fs_mgr_update_logical_partition()
1094 entry->blk_device = device_name; in fs_mgr_update_logical_partition()
1223 entry->blk_device = name; in UpdateCheckpointPartition()
1307 entry->blk_device = dm_path; in WrapUserdata()
[all …]
H A Dfs_mgr_remount.cpp311 if (!ret && fs_mgr_set_blk_ro(entry.blk_device, false)) { in do_remount()
312 fec::io fh(entry.blk_device.c_str(), O_RDWR); in do_remount()
411 auto blk_device = entry.blk_device; in do_remount() local
418 blk_device = rentry.blk_device; in do_remount()
424 blk_device = rentry.blk_device; in do_remount()
431 PLOG(INFO) << "skip unmounted partition dev:" << blk_device << " mnt:" << mount_point; in do_remount()
434 if (blk_device == "/dev/root") { in do_remount()
436 if (from_fstab) blk_device = from_fstab->blk_device; in do_remount()
438 fs_mgr_set_blk_ro(blk_device, false); in do_remount()
447 if (::mount(blk_device.c_str(), mount_point.c_str(), entry.fs_type.c_str(), MS_REMOUNT, in do_remount()
[all …]
H A Dfs_mgr_verity.cpp346 std::size_t found1 = blk_device.find("by-name"); in update_verity_table_blk_device()
349 blk_device.substr(found1) == token.substr(found2) + ab_suffix) { in update_verity_table_blk_device()
350 new_token = blk_device; in update_verity_table_blk_device()
395 PERROR << "Failed to open '" << entry->blk_device << "'"; in fs_mgr_setup_verity()
401 PERROR << "Failed to get verity metadata '" << entry->blk_device << "'"; in fs_mgr_setup_verity()
423 params.ecc_dev = entry->blk_device.c_str(); in fs_mgr_setup_verity()
466 update_verity_table_blk_device(entry->blk_device, &params.table, in fs_mgr_setup_verity()
511 fs_mgr_set_blk_ro(entry->blk_device); in fs_mgr_setup_verity()
516 LINFO << "Verifying partition " << entry->blk_device << " at boot"; in fs_mgr_setup_verity()
526 entry->blk_device = verity_blk_name; in fs_mgr_setup_verity()
[all …]
H A Dfs_mgr_fstab.cpp473 entry.blk_device = p; in ReadFstabFile()
505 entry.logical_partition_name = entry.blk_device; in ReadFstabFile()
544 std::string blk_device = entry.blk_device; in ExtraBootDevices() local
554 auto slash_by_name = blk_device.find("/by-name"); in ExtraBootDevices()
559 blk_device.erase(0, std::string("/dev/block/").size()); in ExtraBootDevices()
563 auto first_slash = blk_device.find('/'); in ExtraBootDevices()
566 auto boot_device = blk_device.substr(first_slash + 1); in ExtraBootDevices()
577 .blk_device = "userdata_gsi", in BuildDsuUserdataFstabEntry()
612 userdata.blk_device = android::gsi::kDsuUserdata; in TransformFstabForDsu()
649 .blk_device = partition, in TransformFstabForDsu()
[all …]
H A Dfs_mgr_slotselect.cpp72 entry.blk_device = entry.blk_device + update_suffix; in fs_mgr_update_for_slotselect()
H A Dfs_mgr_format.cpp163 LERROR << __FUNCTION__ << ": Format " << entry.blk_device << " as '" << entry.fs_type << "'"; in fs_mgr_do_format()
174 return format_f2fs(entry.blk_device, entry.length, crypt_footer, needs_projid, in fs_mgr_do_format()
177 return format_ext4(entry.blk_device, entry.mount_point, crypt_footer, needs_projid, in fs_mgr_do_format()
H A Dfs_mgr_priv.h97 bool fs_mgr_is_ext4(const std::string& blk_device);
98 bool fs_mgr_is_f2fs(const std::string& blk_device);
H A Dfs_mgr_overlayfs.cpp214 if (fs_mgr_access(entry->blk_device)) { in fs_mgr_update_blk_device()
217 if (entry->blk_device != "/dev/root") { in fs_mgr_update_blk_device()
222 auto blk_device = kPhysicalDevice + "system"; in fs_mgr_update_blk_device() local
223 if (!fs_mgr_access(blk_device)) { in fs_mgr_update_blk_device()
224 blk_device += fs_mgr_get_slot_suffix(); in fs_mgr_update_blk_device()
225 if (!fs_mgr_access(blk_device)) { in fs_mgr_update_blk_device()
229 entry->blk_device = blk_device; in fs_mgr_update_blk_device()
249 auto has_shared_blocks = fs_mgr_has_shared_blocks(entry->mount_point, entry->blk_device); in fs_mgr_overlayfs_enabled()
251 has_shared_blocks = fs_mgr_has_shared_blocks("/", entry->blk_device); in fs_mgr_overlayfs_enabled()
849 entry.blk_device = device_path; in fs_mgr_overlayfs_mount_scratch()
[all …]
/aosp12/system/core/init/
H A Dmount_handler.cpp58 fields[0] = entry->blk_device; in ParseMount()
72 if (!android::base::StartsWith(entry.blk_device, devblock)) return; in SetMountProperty()
75 value = entry.blk_device.substr(strlen(devblock)); in SetMountProperty()
103 MountHandlerEntry::MountHandlerEntry(const std::string& blk_device, const std::string& mount_point, in MountHandlerEntry() argument
105 : blk_device(blk_device), mount_point(mount_point), fs_type(fs_type) {} in MountHandlerEntry()
108 if (blk_device < r.blk_device) return true; in operator <()
109 if (blk_device > r.blk_device) return false; in operator <()
H A Dmount_handler.h31 MountHandlerEntry(const std::string& blk_device, const std::string& mount_point,
36 const std::string blk_device; member
H A Dfirst_stage_mount.cpp431 if (!block_dev_init_.InitDmDevice(begin->blk_device)) { in MountPartition()
448 current->blk_device = begin->blk_device; in MountPartition()
701 devices->emplace(basename(fstab_entry.blk_device.c_str())); in GetDmVerityDevices()
720 return block_dev_init_.InitDmDevice(fstab_entry->blk_device); in SetUpDmVerity()
768 logical_partitions.emplace(basename(fstab_entry.blk_device.c_str())); in GetDmVerityDevices()
770 devices->emplace(basename(fstab_entry.blk_device.c_str())); in GetDmVerityDevices()
844 return block_dev_init_.InitDmDevice(fstab_entry->blk_device); in SetUpDmVerity()
H A Dselinux.cpp676 entry.blk_device = in MountMissingSystemPartitions()
677 android::base::StringReplace(entry.blk_device, replace_name, partition_name, false); in MountMissingSystemPartitions()
693 if (access(entry.blk_device.c_str(), F_OK) != 0) { in MountMissingSystemPartitions()
694 auto block_dev = android::base::Basename(entry.blk_device); in MountMissingSystemPartitions()
/aosp12/bootable/recovery/recovery_utils/
H A Droots.cpp58 .blk_device = "ramdisk", in load_volume_table()
68 << " " << entry.fs_type << " " << entry.blk_device << " " << entry.length in load_volume_table()
181 android::base::unique_fd fd(open(v->blk_device.c_str(), O_RDONLY)); in format_volume()
183 PLOG(ERROR) << "format_volume: failed to open " << v->blk_device; in format_volume()
225 mke2fs_args.push_back(v->blk_device); in format_volume()
233 "/system/bin/e2fsdroid", "-e", "-f", directory, "-a", volume, v->blk_device, in format_volume()
239 PLOG(ERROR) << "format_volume: Failed to make ext4 on " << v->blk_device; in format_volume()
268 make_f2fs_cmd.push_back(v->blk_device); in format_volume()
274 PLOG(ERROR) << "format_volume: Failed to make_f2fs on " << v->blk_device; in format_volume()
279 "/system/bin/sload_f2fs", "-f", directory, "-t", volume, v->blk_device, in format_volume()
[all …]
/aosp12/system/vold/
H A DMetadataCrypt.cpp83 static bool mount_via_fs_mgr(const char* mount_point, const char* blk_device) { in mount_via_fs_mgr() argument
91 const_cast<char*>(blk_device), nullptr, in mount_via_fs_mgr()
138 static bool create_crypto_blk_dev(const std::string& dm_name, const std::string& blk_device, in create_crypto_blk_dev() argument
141 if (!get_number_of_sectors(blk_device, nr_sec)) return false; in create_crypto_blk_dev()
164 hex_key, blk_device, 0); in create_crypto_blk_dev()
214 bool fscrypt_mount_metadata_encrypted(const std::string& blk_device, const std::string& mount_point, in fscrypt_mount_metadata_encrypted() argument
263 if (!create_crypto_blk_dev(kDmNameUserdata, blk_device, key, options, &crypto_blkdev, &nr_sec)) in fscrypt_mount_metadata_encrypted()
281 if (!encrypt_inplace(crypto_blkdev, blk_device, nr_sec, false)) return false; in fscrypt_mount_metadata_encrypted()
307 bool defaultkey_setup_ext_volume(const std::string& label, const std::string& blk_device, in defaultkey_setup_ext_volume() argument
309 LOG(DEBUG) << "defaultkey_setup_ext_volume: " << label << " " << blk_device; in defaultkey_setup_ext_volume()
[all …]
H A DCheckpoint.cpp196 if (mount(mount_rec.blk_device.c_str(), mount_rec.mount_point.c_str(), "none", in cp_commitChanges()
202 if (!setBowState(mount_rec.blk_device, "2")) in cp_commitChanges()
311 static void cp_healthDaemon(std::string mnt_pnt, std::string blk_device, bool is_fs_cp) { in cp_healthDaemon() argument
328 std::string bow_device = fs_mgr_find_bow_device(blk_device); in cp_healthDaemon()
389 setBowState(mount_rec.blk_device, "1"); in cp_prepareCheckpoint()
393 std::string(mount_rec.blk_device), in cp_prepareCheckpoint()
/aosp12/system/core/fs_mgr/libfs_avb/
H A Dfs_avb_util.cpp50 std::string device_path = fstab_entry.blk_device; in LoadAndVerifyVbmeta()
52 !android::base::StartsWith(fstab_entry.blk_device, "/")) { in LoadAndVerifyVbmeta()
54 if (!dm.GetDmDevicePathByName(fstab_entry.blk_device, &device_path)) { in LoadAndVerifyVbmeta()
55 LERROR << "Failed to resolve logical device path for: " << fstab_entry.blk_device; in LoadAndVerifyVbmeta()
H A Davb_util.cpp55 const std::string& blk_device, android::dm::DmTable* table) { in ConstructVerityTable() argument
79 0, hashtree_desc.image_size / 512, hashtree_desc.dm_verity_version, blk_device, in ConstructVerityTable()
80 blk_device, hashtree_desc.data_block_size, hashtree_desc.hash_block_size, in ConstructVerityTable()
85 target.UseFec(blk_device, hashtree_desc.fec_num_roots, in ConstructVerityTable()
103 if (!ConstructVerityTable(hashtree_desc, fstab_entry->blk_device, &table) || !table.valid()) { in HashtreeDmVeritySetup()
122 SetBlockDeviceReadOnly(fstab_entry->blk_device); in HashtreeDmVeritySetup()
125 fstab_entry->blk_device = dev_path; in HashtreeDmVeritySetup()
306 partition_name = Basename(fstab_entry.blk_device); in DeriveAvbPartitionName()
H A Davb_ops.cpp161 if (!dm.GetDmDevicePathByName(fstab_entry->blk_device, &device_path)) { in GetLogicalPath()
162 LERROR << "Failed to resolve logical device path for: " << fstab_entry->blk_device; in GetLogicalPath()
/aosp12/system/extras/boot_control_copy/
H A Dbootinfo.cpp76 path = strdup(record->blk_device.c_str()); in boot_info_open_partition()
79 const char* end_slash = strrchr(record->blk_device.c_str(), '/'); in boot_info_open_partition()
83 trimmed_len = end_slash - record->blk_device.c_str() + 1; in boot_info_open_partition()
86 strncpy(path, record->blk_device.c_str(), trimmed_len); in boot_info_open_partition()
/aosp12/system/vold/model/
H A DVolumeEncryption.cpp79 bool setup_ext_volume(const std::string& label, const std::string& blk_device, in setup_ext_volume() argument
86 return cryptfs_setup_ext_volume(label.c_str(), blk_device.c_str(), key, in setup_ext_volume()
89 return defaultkey_setup_ext_volume(label, blk_device, key, out_crypto_blkdev); in setup_ext_volume()
H A DVolumeEncryption.h28 bool setup_ext_volume(const std::string& label, const std::string& blk_device,
/aosp12/hardware/ti/am57x/bootctrl/
H A Dbootloader_message.cpp49 return record->blk_device; in get_misc_blk_device()
54 static bool wait_for_device(const std::string& blk_device, std::string* err) { in wait_for_device() argument
61 ret = stat(blk_device.c_str(), &buf); in wait_for_device()
64 blk_device.c_str(), tries, strerror(errno)); in wait_for_device()
70 *err += android::base::StringPrintf("failed to stat %s\n", blk_device.c_str()); in wait_for_device()
/aosp12/bootable/recovery/bootloader_message/
H A Dbootloader_message.cpp59 return entry.blk_device; in get_misc_blk_device()
69 static bool wait_for_device(const std::string& blk_device, std::string* err) { in wait_for_device() argument
76 ret = stat(blk_device.c_str(), &buf); in wait_for_device()
79 blk_device.c_str(), tries, strerror(errno)); in wait_for_device()
85 *err += android::base::StringPrintf("failed to stat %s\n", blk_device.c_str()); in wait_for_device()
/aosp12/system/extras/squashfs_utils/
H A Dsquashfs_utils.c60 int squashfs_parse_sb(const char *blk_device, struct squashfs_info *info) in squashfs_parse_sb() argument
66 data_device = TEMP_FAILURE_RETRY(open(blk_device, O_RDONLY | O_CLOEXEC)); in squashfs_parse_sb()
H A Dsquashfs_utils.h36 int squashfs_parse_sb(const char *blk_device, struct squashfs_info *info);

12