/system/core/fs_mgr/ |
H A D | fs_mgr_slotselect.cpp | 53 if (asprintf(&tmp, "%s%s", fstab->recs[n].blk_device, ab_suffix.c_str()) > 0) { 54 free(fstab->recs[n].blk_device); 55 fstab->recs[n].blk_device = tmp;
|
H A D | fs_mgr.cpp | 111 static void log_fs_stat(const char* blk_device, int fs_stat) argument 114 std::string msg = android::base::StringPrintf("\nfs_stat,%s,0x%x\n", blk_device, fs_stat); 134 static void check_fs(const char *blk_device, char *fs_type, char *target, int *fs_stat) argument 140 const char* e2fsck_argv[] = {E2FSCK_BIN, "-y", blk_device}; 141 const char* e2fsck_forced_argv[] = {E2FSCK_BIN, "-f", "-y", blk_device}; 167 ret = mount(blk_device, target, fs_type, tmpmnt_flags, tmpmnt_opts); 168 PINFO << __FUNCTION__ << "(): mount(" << blk_device << "," << target << "," << fs_type 197 LINFO << "Not running " << E2FSCK_BIN << " on " << blk_device local 200 LINFO << "Running " << E2FSCK_BIN << " on " << blk_device; local 224 blk_device 226 LINFO << "Running " << F2FS_FSCK_BIN << " -a " << blk_device; local 254 read_ext4_superblock(const char* blk_device, struct ext4_super_block* sb, int* fs_stat) argument 258 PERROR << "Failed to open '" << blk_device << "'"; local 263 PERROR << "Can't read '" << blk_device << "' superblock"; local 297 tune_quota(const char* blk_device, const struct fstab_rec* rec, const struct ext4_super_block* sb, int* fs_stat) argument 315 LINFO << "Enabling quotas on " << blk_device; local 320 LINFO << "Disabling quotas on " << blk_device; local 333 tune_reserved_size(const char* blk_device, const struct fstab_rec* rec, const struct ext4_super_block* sb, int* fs_stat) argument 367 << blk_device; local 373 tune_encrypt(const char* blk_device, const struct fstab_rec* rec, const struct ext4_super_block* sb, int* fs_stat) argument 390 LINFO << "Enabling ext4 encryption on " << blk_device; local 393 << "ext4 encryption on " << blk_device; local 407 prepare_fs_for_mount(const char* blk_device, const struct fstab_rec* rec) argument [all...] |
H A D | fs_mgr_format.cpp | 100 LERROR << __FUNCTION__ << ": Format " << fstab->blk_device 104 rc = format_f2fs(fstab->blk_device); 106 rc = format_ext4(fstab->blk_device, fstab->mount_point, crypt_footer);
|
H A D | fs_mgr_avb.cpp | 236 const std::string& blk_device) { 261 verity_table << hashtree_desc.dm_verity_version << " " << blk_device << " " << blk_device << " " 283 optional_args << "use_fec_from_device " << blk_device 375 construct_verity_table(hashtree_desc, salt, root_digest, fstab_entry->blk_device); 393 fs_mgr_set_blk_ro(fstab_entry->blk_device); 395 // Updates fstab_rec->blk_device to verity device name. 396 free(fstab_entry->blk_device); 397 fstab_entry->blk_device = strdup(verity_blk_name.c_str()); 585 // Derives partition_name from blk_device t 234 construct_verity_table(const AvbHashtreeDescriptor& hashtree_desc, const std::string& salt, const std::string& root_digest, const std::string& blk_device) argument [all...] |
H A D | fs_mgr_verity.cpp | 587 if (fec_open(&f, fstab->blk_device, O_RDONLY, FEC_VERITY_DISABLE, 589 PERROR << "Failed to open '" << fstab->blk_device << "'"; 595 PERROR << "Failed to get verity metadata '" << fstab->blk_device << "'"; 700 // blk_device-1 (non-A/B): /dev/block/platform/soc.0/7824900.sdhci/by-name/vendor 701 // blk_device-2 (A/B): /dev/block/platform/soc.0/f9824900.sdhci/by-name/vendor_a 706 // blk_device: /dev/block/platform/soc.0/7824900.sdhci/by-name/vendor_a 707 static void update_verity_table_blk_device(const std::string& blk_device, char** table, argument 713 // If slot_select is set, it means blk_device is already updated with ab_suffix. 719 if (token == blk_device) return; // no need to update if they're already the same. 720 std::size_t found1 = blk_device [all...] |
H A D | fs_mgr_avb_ops.cpp | 129 std::string partition_name = basename(fstab.recs[i].blk_device); 130 by_name_symlink_map_[partition_name] = fstab.recs[i].blk_device;
|
H A D | fs_mgr_fstab.cpp | 551 fstab->recs[cnt].blk_device = strdup(p); 742 free(fstab->recs[i].blk_device); 764 const char *blk_device) 780 new_fstab_recs[n].blk_device = strdup(blk_device); 762 fs_mgr_add_entry(struct fstab *fstab, const char *mount_point, const char *fs_type, const char *blk_device) argument
|
/system/extras/squashfs_utils/ |
H A D | squashfs_utils.h | 36 int squashfs_parse_sb(const char *blk_device, struct squashfs_info *info);
|
H A D | squashfs_utils.c | 60 int squashfs_parse_sb(const char *blk_device, struct squashfs_info *info) argument 66 data_device = TEMP_FAILURE_RETRY(open(blk_device, O_RDONLY | O_CLOEXEC));
|
/system/extras/boot_control_copy/ |
H A D | bootinfo.c | 83 path = strdup(record->blk_device); 86 const char *end_slash = strrchr(record->blk_device, '/'); 91 trimmed_len = end_slash - record->blk_device + 1; 94 strncpy(path, record->blk_device, trimmed_len);
|
/system/update_engine/ |
H A D | utils_android.cc | 59 *device = base::FilePath(record->blk_device);
|
/system/core/fs_mgr/include_fstab/fstab/ |
H A D | fstab.h | 45 char* blk_device; member in struct:fstab_rec 73 const char* blk_device);
|
/system/vold/ |
H A D | MetadataCrypt.cpp | 54 static bool mount_via_fs_mgr(const char* mount_point, const char* blk_device) { argument 62 const_cast<char*>(blk_device), nullptr); 262 if (!get_number_of_sectors(data_rec->blk_device, &nr_sec)) return false; 265 default_key_params(data_rec->blk_device, key), &crypto_blkdev)) return false; 292 if (!get_number_of_sectors(data_rec->blk_device, &nr_sec)) return false; 296 default_key_params(data_rec->blk_device, key_ref), &crypto_blkdev)) return false; 301 data_rec->blk_device, nr_sec, &size_already_done, nr_sec, 0);
|
H A D | main.cpp | 240 std::string sysPattern(fstab->recs[i].blk_device);
|
/system/libvintf/ |
H A D | VintfObjectRecovery.cpp | 36 int result = mount(rec->blk_device, mount_point, rec->fs_type, rec->flags, rec->fs_options);
|
/system/core/init/ |
H A D | init_first_stage.cpp | 309 // Notes that fstab_rec->blk_device has A/B suffix updated by fs_mgr when A/B is used. 311 required_devices_partition_names_.emplace(basename(fstab_rec->blk_device)); 330 // The exact block device name (fstab_rec->blk_device) is changed to 333 return InitVerityDevice(fstab_rec->blk_device); 363 // fstab_rec->blk_device has A/B suffix. 368 required_devices_partition_names_.emplace(basename(fstab_rec->blk_device)); 430 // The exact block device name (fstab_rec->blk_device) is changed to 433 return InitVerityDevice(fstab_rec->blk_device);
|
H A D | property_service.cpp | 718 int fd = open(rec->blk_device, O_RDONLY); 720 PLOG(ERROR) << "error opening block device " << rec->blk_device;
|
/system/core/adb/ |
H A D | remount_service.cpp | 60 return rec ? rec->blk_device : "";
|
H A D | set_verity_enable_state_service.cpp | 194 if (set_verity_enabled_state(fd, fstab->recs[i].blk_device,
|
/system/extras/tests/fstest/ |
H A D | recovery_test.cpp | 198 strcpy(blk_path_, fstab->recs[i].blk_device);
|