/system/core/fs_mgr/ |
D | fs_mgr.cpp | 141 static void log_fs_stat(const std::string& blk_device, int fs_stat) { in log_fs_stat() argument 144 android::base::StringPrintf("\nfs_stat,%s,0x%x\n", blk_device.c_str(), fs_stat); in log_fs_stat() 160 static std::string realpath(const std::string& blk_device) { in realpath() argument 162 if (!Realpath(blk_device, &real_path)) { in realpath() 163 real_path = blk_device; in realpath() 176 static void check_fs(const std::string& blk_device, const std::string& fs_type, in check_fs() argument 182 const char* e2fsck_argv[] = {E2FSCK_BIN, "-y", blk_device.c_str()}; in check_fs() 183 const char* e2fsck_forced_argv[] = {E2FSCK_BIN, "-f", "-y", blk_device.c_str()}; in check_fs() 210 ret = mount(blk_device.c_str(), target.c_str(), fs_type.c_str(), tmpmnt_flags, in check_fs() 212 PINFO << __FUNCTION__ << "(): mount(" << blk_device << "," << target << "," << fs_type in check_fs() [all …]
|
D | fs_mgr_remount.cpp | 277 } else if (fs_mgr_set_blk_ro(entry.blk_device, false)) { in main() 278 fec::io fh(entry.blk_device.c_str(), O_RDWR); in main() 337 auto blk_device = entry.blk_device; in main() local 343 blk_device = rentry.blk_device; in main() 348 blk_device = rentry.blk_device; in main() 353 if (blk_device == "/dev/root") { in main() 355 if (from_fstab) blk_device = from_fstab->blk_device; in main() 357 fs_mgr_set_blk_ro(blk_device, false); in main() 366 if (::mount(blk_device.c_str(), mount_point.c_str(), entry.fs_type.c_str(), MS_REMOUNT, in main() 372 if (::mount(blk_device.c_str(), mount_point.c_str(), entry.fs_type.c_str(), MS_REMOUNT, in main() [all …]
|
D | fs_mgr_verity.cpp | 555 if (fec_open(&f, entry.blk_device.c_str(), O_RDONLY, FEC_VERITY_DISABLE, FEC_DEFAULT_ROOTS) == in compare_last_signature() 557 PERROR << "Failed to open '" << entry.blk_device << "'"; in compare_last_signature() 563 PERROR << "Failed to get verity metadata '" << entry.blk_device << "'"; in compare_last_signature() 670 static void update_verity_table_blk_device(const std::string& blk_device, char** table, in update_verity_table_blk_device() argument 682 if (token == blk_device) return; // no need to update if they're already the same. in update_verity_table_blk_device() 683 std::size_t found1 = blk_device.find("by-name"); in update_verity_table_blk_device() 686 blk_device.substr(found1) == token.substr(found2) + ab_suffix) { in update_verity_table_blk_device() 687 new_token = blk_device; in update_verity_table_blk_device() 730 if (fec_open(&f, entry->blk_device.c_str(), O_RDONLY, FEC_VERITY_DISABLE, FEC_DEFAULT_ROOTS) < in fs_mgr_setup_verity() 732 PERROR << "Failed to open '" << entry->blk_device << "'"; in fs_mgr_setup_verity() [all …]
|
D | fs_mgr_fstab.cpp | 493 entry.blk_device = p; in ReadFstabFile() 525 entry.logical_partition_name = entry.blk_device; in ReadFstabFile() 564 std::string blk_device = entry.blk_device; in ExtraBootDevices() local 566 if (!android::base::StartsWith(blk_device, "/dev/block") || in ExtraBootDevices() 567 android::base::StartsWith(blk_device, "/dev/block/by-name") || in ExtraBootDevices() 568 android::base::StartsWith(blk_device, "/dev/block/bootdevice/by-name")) { in ExtraBootDevices() 574 auto slash_by_name = blk_device.find("/by-name"); in ExtraBootDevices() 576 blk_device.erase(slash_by_name); // erases /by-name/<partition> in ExtraBootDevices() 579 blk_device.erase(0, std::string("/dev/block/").size()); in ExtraBootDevices() 583 auto first_slash = blk_device.find('/'); in ExtraBootDevices() [all …]
|
D | fs_mgr_slotselect.cpp | 72 entry.blk_device = entry.blk_device + update_suffix; in fs_mgr_update_for_slotselect()
|
D | fs_mgr_format.cpp | 127 LERROR << __FUNCTION__ << ": Format " << entry.blk_device << " as '" << entry.fs_type << "'"; in fs_mgr_do_format() 130 return format_f2fs(entry.blk_device, entry.length, crypt_footer); in fs_mgr_do_format() 132 return format_ext4(entry.blk_device, entry.mount_point, crypt_footer); in fs_mgr_do_format()
|
D | fs_mgr_priv.h | 104 bool fs_mgr_is_ext4(const std::string& blk_device); 105 bool fs_mgr_is_f2fs(const std::string& blk_device);
|
D | fs_mgr_overlayfs.cpp | 165 auto has_shared_blocks = fs_mgr_has_shared_blocks(entry->mount_point, entry->blk_device); in fs_mgr_overlayfs_enabled() 167 has_shared_blocks = fs_mgr_has_shared_blocks("/", entry->blk_device); in fs_mgr_overlayfs_enabled() 170 if (!has_shared_blocks && (errno == ENOENT) && (entry->blk_device == "/dev/root")) { in fs_mgr_overlayfs_enabled() 567 entry.blk_device = device_path; in fs_mgr_overlayfs_mount_scratch()
|
/system/core/init/ |
D | mount_handler.cpp | 59 fields[0] = entry->blk_device; in ParseMount() 73 if (!android::base::StartsWith(entry.blk_device, devblock)) return; in SetMountProperty() 76 value = entry.blk_device.substr(strlen(devblock)); in SetMountProperty() 104 MountHandlerEntry::MountHandlerEntry(const std::string& blk_device, const std::string& mount_point, in MountHandlerEntry() argument 106 : blk_device(blk_device), mount_point(mount_point), fs_type(fs_type) {} in MountHandlerEntry() 109 if (blk_device < r.blk_device) return true; in operator <() 110 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 | 464 if (!InitMappedDevice(begin->blk_device)) { in MountPartition() 481 current->blk_device = begin->blk_device; in MountPartition() 678 required_devices_partition_names_.emplace(basename(fstab_entry.blk_device.c_str())); in GetDmVerityDevices() 701 return InitMappedDevice(fstab_entry->blk_device); in SetUpDmVerity() 745 logical_partitions.emplace(basename(fstab_entry.blk_device.c_str())); in GetDmVerityDevices() 747 required_devices_partition_names_.emplace(basename(fstab_entry.blk_device.c_str())); in GetDmVerityDevices() 820 return InitMappedDevice(fstab_entry->blk_device); in SetUpDmVerity()
|
/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() 122 SetBlockDeviceReadOnly(fstab_entry->blk_device); in HashtreeDmVeritySetup() 125 fstab_entry->blk_device = dev_path; in HashtreeDmVeritySetup() 254 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()
|
D | avb_util.h | 48 const std::string& blk_device, android::dm::DmTable* table);
|
D | fs_avb.cpp | 282 fstab_entry.blk_device, "" /* partition_name, no need for a standalone path */, in LoadAndVerifyVbmeta() 288 LERROR << "Failed to load vbmeta: " << fstab_entry.blk_device; in LoadAndVerifyVbmeta()
|
/system/extras/boot_control_copy/ |
D | bootinfo.cpp | 80 path = strdup(record->blk_device.c_str()); in boot_info_open_partition() 83 const char *end_slash = strrchr(record->blk_device.c_str(), '/'); in boot_info_open_partition() 87 trimmed_len = end_slash - record->blk_device.c_str() + 1; in boot_info_open_partition() 90 strncpy(path, record->blk_device.c_str(), trimmed_len); in boot_info_open_partition()
|
/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/vold/ |
D | MetadataCrypt.cpp | 61 static bool mount_via_fs_mgr(const char* mount_point, const char* blk_device) { in mount_via_fs_mgr() argument 69 const_cast<char*>(blk_device), nullptr, in mount_via_fs_mgr() 252 bool fscrypt_mount_metadata_encrypted(const std::string& blk_device, const std::string& mount_point, in fscrypt_mount_metadata_encrypted() argument 269 if (!get_number_of_sectors(data_rec->blk_device, &nr_sec)) return false; in fscrypt_mount_metadata_encrypted() 272 default_key_params(blk_device, key), &crypto_blkdev)) in fscrypt_mount_metadata_encrypted() 279 auto rc = cryptfs_enable_inplace(crypto_blkdev.data(), blk_device.data(), nr_sec, in fscrypt_mount_metadata_encrypted()
|
D | main.cpp | 239 PLOG(FATAL) << "could not find logical partition " << entry.blk_device; in process_config() 248 std::string sysPattern(entry.blk_device); in process_config()
|
D | Checkpoint.cpp | 173 if (mount(mount_rec.blk_device.c_str(), mount_rec.mount_point.c_str(), "none", in cp_commitChanges() 179 if (!setBowState(mount_rec.blk_device, "2")) in cp_commitChanges() 277 static void cp_healthDaemon(std::string mnt_pnt, std::string blk_device, bool is_fs_cp) { in cp_healthDaemon() argument 294 std::string bow_device = fs_mgr_find_bow_device(blk_device); in cp_healthDaemon() 352 setBowState(mount_rec.blk_device, "1"); in cp_prepareCheckpoint() 356 std::string(mount_rec.blk_device), in cp_prepareCheckpoint()
|
/system/core/fs_mgr/include_fstab/fstab/ |
D | fstab.h | 33 std::string blk_device; member
|
/system/core/adb/daemon/ |
D | set_verity_enable_state_service.cpp | 235 if (set_verity_enabled_state(fd.get(), entry.blk_device.c_str(), in set_verity_enabled_state_service()
|
/system/extras/tests/fstest/ |
D | recovery_test.cpp | 200 blk_path_ = entry.blk_device; in setCacheInfoFromFstab()
|