/system/core/fs_mgr/ |
D | fs_mgr.cpp | 137 static void log_fs_stat(const std::string& blk_device, int fs_stat) { in log_fs_stat() argument 140 android::base::StringPrintf("\nfs_stat,%s,0x%x\n", blk_device.c_str(), fs_stat); in log_fs_stat() 156 static std::string realpath(const std::string& blk_device) { in realpath() argument 158 if (!Realpath(blk_device, &real_path)) { in realpath() 159 real_path = blk_device; in realpath() 172 static void check_fs(const std::string& blk_device, const std::string& fs_type, in check_fs() argument 178 const char* e2fsck_argv[] = {E2FSCK_BIN, "-y", blk_device.c_str()}; in check_fs() 179 const char* e2fsck_forced_argv[] = {E2FSCK_BIN, "-f", "-y", blk_device.c_str()}; in check_fs() 207 ret = mount(blk_device.c_str(), target.c_str(), fs_type.c_str(), tmpmnt_flags, in check_fs() 209 PINFO << __FUNCTION__ << "(): mount(" << blk_device << "," << target << "," << fs_type in check_fs() [all …]
|
D | fs_mgr_remount.cpp | 307 if (!ret && fs_mgr_set_blk_ro(entry.blk_device, false)) { in do_remount() 308 fec::io fh(entry.blk_device.c_str(), O_RDWR); in do_remount() 372 auto blk_device = entry.blk_device; in do_remount() local 378 blk_device = rentry.blk_device; in do_remount() 383 blk_device = rentry.blk_device; in do_remount() 388 if (blk_device == "/dev/root") { in do_remount() 390 if (from_fstab) blk_device = from_fstab->blk_device; in do_remount() 392 fs_mgr_set_blk_ro(blk_device, false); in do_remount() 401 if (::mount(blk_device.c_str(), mount_point.c_str(), entry.fs_type.c_str(), MS_REMOUNT, in do_remount() 407 if (::mount(blk_device.c_str(), mount_point.c_str(), entry.fs_type.c_str(), MS_REMOUNT, in do_remount() [all …]
|
D | fs_mgr_verity.cpp | 333 static void update_verity_table_blk_device(const std::string& blk_device, char** table, in update_verity_table_blk_device() argument 345 if (token == blk_device) return; // no need to update if they're already the same. in update_verity_table_blk_device() 346 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() 393 if (fec_open(&f, entry->blk_device.c_str(), O_RDONLY, FEC_VERITY_DISABLE, FEC_DEFAULT_ROOTS) < in fs_mgr_setup_verity() 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, ¶ms.table, in fs_mgr_setup_verity() [all …]
|
D | fs_mgr_slotselect.cpp | 72 entry.blk_device = entry.blk_device + update_suffix; in fs_mgr_update_for_slotselect()
|
D | fs_mgr_fstab.cpp | 460 entry.blk_device = p; in ReadFstabFile() 492 entry.logical_partition_name = entry.blk_device; in ReadFstabFile() 531 std::string blk_device = entry.blk_device; in ExtraBootDevices() local 533 if (!android::base::StartsWith(blk_device, "/dev/block") || in ExtraBootDevices() 534 android::base::StartsWith(blk_device, "/dev/block/by-name") || in ExtraBootDevices() 535 android::base::StartsWith(blk_device, "/dev/block/bootdevice/by-name")) { in ExtraBootDevices() 541 auto slash_by_name = blk_device.find("/by-name"); in ExtraBootDevices() 543 blk_device.erase(slash_by_name); // erases /by-name/<partition> in ExtraBootDevices() 546 blk_device.erase(0, std::string("/dev/block/").size()); in ExtraBootDevices() 550 auto first_slash = blk_device.find('/'); in ExtraBootDevices() [all …]
|
D | fs_mgr_priv.h | 97 bool fs_mgr_is_ext4(const std::string& blk_device); 98 bool fs_mgr_is_f2fs(const std::string& blk_device);
|
D | fs_mgr_format.cpp | 163 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()
|
D | fs_mgr_overlayfs.cpp | 181 if (fs_mgr_access(entry->blk_device)) { in fs_mgr_update_blk_device() 184 if (entry->blk_device != "/dev/root") { in fs_mgr_update_blk_device() 189 auto blk_device = kPhysicalDevice + "system"; in fs_mgr_update_blk_device() local 190 if (!fs_mgr_access(blk_device)) { in fs_mgr_update_blk_device() 191 blk_device += fs_mgr_get_slot_suffix(); in fs_mgr_update_blk_device() 192 if (!fs_mgr_access(blk_device)) { in fs_mgr_update_blk_device() 196 entry->blk_device = blk_device; in fs_mgr_update_blk_device() 216 auto has_shared_blocks = fs_mgr_has_shared_blocks(entry->mount_point, entry->blk_device); in fs_mgr_overlayfs_enabled() 218 has_shared_blocks = fs_mgr_has_shared_blocks("/", entry->blk_device); in fs_mgr_overlayfs_enabled() 807 entry.blk_device = device_path; in fs_mgr_overlayfs_mount_scratch() [all …]
|
/system/core/init/ |
D | mount_handler.cpp | 58 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 <()
|
D | mount_handler.h | 31 MountHandlerEntry(const std::string& blk_device, const std::string& mount_point, 36 const std::string blk_device; member
|
D | first_stage_mount.cpp | 372 if (!block_dev_init_.InitDmDevice(begin->blk_device)) { in MountPartition() 389 current->blk_device = begin->blk_device; in MountPartition() 638 devices->emplace(basename(fstab_entry.blk_device.c_str())); in GetDmVerityDevices() 657 return block_dev_init_.InitDmDevice(fstab_entry->blk_device); in SetUpDmVerity() 701 logical_partitions.emplace(basename(fstab_entry.blk_device.c_str())); in GetDmVerityDevices() 703 devices->emplace(basename(fstab_entry.blk_device.c_str())); in GetDmVerityDevices() 777 return block_dev_init_.InitDmDevice(fstab_entry->blk_device); in SetUpDmVerity()
|
D | selinux.cpp | 642 entry.blk_device = in MountMissingSystemPartitions() 643 android::base::StringReplace(entry.blk_device, replace_name, partition_name, false); in MountMissingSystemPartitions() 659 if (access(entry.blk_device.c_str(), F_OK) != 0) { in MountMissingSystemPartitions() 660 auto block_dev = android::base::Basename(entry.blk_device); in MountMissingSystemPartitions()
|
/system/core/fs_mgr/libfs_avb/ |
D | fs_avb_util.cpp | 50 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()
|
D | avb_util.cpp | 55 const std::string& blk_device, android::dm::DmTable* table) { in ConstructVerityTable() argument 77 0, hashtree_desc.image_size / 512, hashtree_desc.dm_verity_version, blk_device, in ConstructVerityTable() 78 blk_device, hashtree_desc.data_block_size, hashtree_desc.hash_block_size, in ConstructVerityTable() 83 target.UseFec(blk_device, hashtree_desc.fec_num_roots, in ConstructVerityTable() 101 if (!ConstructVerityTable(hashtree_desc, fstab_entry->blk_device, &table) || !table.valid()) { in HashtreeDmVeritySetup() 120 SetBlockDeviceReadOnly(fstab_entry->blk_device); in HashtreeDmVeritySetup() 123 fstab_entry->blk_device = dev_path; in HashtreeDmVeritySetup() 304 partition_name = Basename(fstab_entry.blk_device); in DeriveAvbPartitionName()
|
D | avb_ops.cpp | 161 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()
|
/system/vold/ |
D | MetadataCrypt.cpp | 89 static bool mount_via_fs_mgr(const char* mount_point, const char* blk_device) { in mount_via_fs_mgr() argument 101 const_cast<char*>(blk_device), nullptr, in mount_via_fs_mgr() 183 static bool create_crypto_blk_dev(const std::string& dm_name, const std::string& blk_device, in create_crypto_blk_dev() argument 186 if (!get_number_of_sectors(blk_device, nr_sec)) return false; in create_crypto_blk_dev() 209 hex_key, blk_device, 0); in create_crypto_blk_dev() 271 bool fscrypt_mount_metadata_encrypted(const std::string& blk_device, const std::string& mount_point, in fscrypt_mount_metadata_encrypted() argument 318 if (!create_crypto_blk_dev(kDmNameUserdata, blk_device, key, options, &crypto_blkdev, &nr_sec)) in fscrypt_mount_metadata_encrypted() 325 auto rc = cryptfs_enable_inplace(crypto_blkdev.data(), blk_device.data(), nr_sec, in fscrypt_mount_metadata_encrypted() 360 bool defaultkey_setup_ext_volume(const std::string& label, const std::string& blk_device, in defaultkey_setup_ext_volume() argument 362 LOG(DEBUG) << "defaultkey_setup_ext_volume: " << label << " " << blk_device; in defaultkey_setup_ext_volume() [all …]
|
D | MetadataCrypt.h | 33 bool defaultkey_setup_ext_volume(const std::string& label, const std::string& blk_device,
|
D | Checkpoint.cpp | 197 if (mount(mount_rec.blk_device.c_str(), mount_rec.mount_point.c_str(), "none", in cp_commitChanges() 203 if (!setBowState(mount_rec.blk_device, "2")) in cp_commitChanges() 312 static void cp_healthDaemon(std::string mnt_pnt, std::string blk_device, bool is_fs_cp) { in cp_healthDaemon() argument 329 std::string bow_device = fs_mgr_find_bow_device(blk_device); in cp_healthDaemon() 390 setBowState(mount_rec.blk_device, "1"); in cp_prepareCheckpoint() 394 std::string(mount_rec.blk_device), in cp_prepareCheckpoint()
|
D | main.cpp | 247 PLOG(FATAL) << "could not find logical partition " << entry.blk_device; in process_config() 256 std::string sysPattern(entry.blk_device); in process_config()
|
/system/extras/boot_control_copy/ |
D | bootinfo.cpp | 79 path = strdup(record->blk_device.c_str()); in boot_info_open_partition() 82 const char *end_slash = strrchr(record->blk_device.c_str(), '/'); in boot_info_open_partition() 86 trimmed_len = end_slash - record->blk_device.c_str() + 1; in boot_info_open_partition() 89 strncpy(path, record->blk_device.c_str(), trimmed_len); in boot_info_open_partition()
|
/system/vold/model/ |
D | VolumeEncryption.cpp | 79 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()
|
D | VolumeEncryption.h | 28 bool setup_ext_volume(const std::string& label, const std::string& blk_device,
|
/system/extras/squashfs_utils/ |
D | squashfs_utils.c | 60 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()
|
D | squashfs_utils.h | 36 int squashfs_parse_sb(const char *blk_device, struct squashfs_info *info);
|
/system/gsid/tests/ |
D | boot_tests.cpp | 50 unique_fd fd(open(entry->blk_device.c_str(), O_RDONLY | O_CLOEXEC)); in TEST()
|