Home
last modified time | relevance | path

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

/system/core/fs_mgr/
Dfs_mgr.c96 static void check_fs(char *blk_device, char *fs_type, char *target) in check_fs() argument
106 blk_device in check_fs()
129 ret = mount(blk_device, target, fs_type, tmpmnt_flags, tmpmnt_opts); in check_fs()
131 __func__, blk_device, target, fs_type, ret, strerror(errno)); in check_fs()
153 E2FSCK_BIN, blk_device); in check_fs()
155 INFO("Running %s on %s\n", E2FSCK_BIN, blk_device); in check_fs()
170 blk_device in check_fs()
172 INFO("Running %s -a %s\n", F2FS_FSCK_BIN, blk_device); in check_fs()
337 check_fs(fstab->recs[i].blk_device, fstab->recs[i].fs_type, in mount_with_alternatives()
340 if (!__mount(fstab->recs[i].blk_device, fstab->recs[i].mount_point, &fstab->recs[i])) { in mount_with_alternatives()
[all …]
Dfs_mgr_slotselect.c49 misc_fd = open(fstab->recs[n].blk_device, O_RDONLY); in get_active_slot_suffix_from_misc()
52 fstab->recs[n].blk_device, in get_active_slot_suffix_from_misc()
130 if (asprintf(&tmp, "%s%s", fstab->recs[n].blk_device, in fs_mgr_update_for_slotselect()
132 free(fstab->recs[n].blk_device); in fs_mgr_update_for_slotselect()
133 fstab->recs[n].blk_device = tmp; in fs_mgr_update_for_slotselect()
Dfs_mgr_format.c108 ERROR("%s: Format %s as '%s'.\n", __func__, fstab->blk_device, fstab->fs_type); in fs_mgr_do_format()
111 rc = format_f2fs(fstab->blk_device); in fs_mgr_do_format()
113 rc = format_ext4(fstab->blk_device, fstab->mount_point); in fs_mgr_do_format()
Dfs_mgr_verity.cpp630 if (fec_open(&f, fstab->blk_device, O_RDONLY, FEC_VERITY_DISABLE, in compare_last_signature()
632 ERROR("Failed to open '%s' (%s)\n", fstab->blk_device, in compare_last_signature()
639 ERROR("Failed to get verity metadata '%s' (%s)\n", fstab->blk_device, in compare_last_signature()
878 if (fec_open(&f, fstab->blk_device, O_RDONLY, FEC_VERITY_DISABLE, in fs_mgr_setup_verity()
880 ERROR("Failed to open '%s' (%s)\n", fstab->blk_device, in fs_mgr_setup_verity()
887 ERROR("Failed to get verity metadata '%s' (%s)\n", fstab->blk_device, in fs_mgr_setup_verity()
905 params.ecc_dev = fstab->blk_device; in fs_mgr_setup_verity()
1001 fs_mgr_set_blk_ro(fstab->blk_device); in fs_mgr_setup_verity()
1004 free(fstab->blk_device); in fs_mgr_setup_verity()
1005 fstab->blk_device = verity_blk_name; in fs_mgr_setup_verity()
[all …]
Dfs_mgr_fstab.c298 fstab->recs[cnt].blk_device = strdup(p); in fs_mgr_read_fstab()
369 free(fstab->recs[i].blk_device); in fs_mgr_free_fstab()
390 const char *blk_device) in fs_mgr_add_entry() argument
406 new_fstab_recs[n].blk_device = strdup(blk_device); in fs_mgr_add_entry()
/system/extras/boot_control_copy/
Dbootinfo.c89 path = strdup(record->blk_device); in boot_info_open_partition()
92 const char *end_slash = strrchr(record->blk_device, '/'); in boot_info_open_partition()
97 trimmed_len = end_slash - record->blk_device + 1; in boot_info_open_partition()
100 strncpy(path, record->blk_device, trimmed_len); in boot_info_open_partition()
/system/extras/squashfs_utils/
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()
Dsquashfs_utils.h36 int squashfs_parse_sb(const char *blk_device, struct squashfs_info *info);
/system/core/fs_mgr/include/
Dfs_mgr.h55 char *blk_device; member
98 const char *blk_device);
/system/core/adb/
Dset_verity_enable_state_service.cpp125 if (!set_verity_enabled_state(fd, fstab->recs[i].blk_device, in set_verity_enabled_state_service()
Dremount_service.cpp62 std::string dev = rec ? std::string(rec->blk_device) : ""; in find_fstab_mount()
/system/update_engine/
Dboot_control_android.cc134 base::FilePath misc_device = base::FilePath(record->blk_device); in GetPartitionDevice()
/system/core/init/
Dproperty_service.cpp503 int fd = open(rec->blk_device, O_RDONLY); in load_recovery_id_prop()
505 ERROR("error opening block device %s: %s\n", rec->blk_device, strerror(errno)); in load_recovery_id_prop()
/system/vold/
Dmain.cpp227 std::string sysPattern(fstab->recs[i].blk_device); in process_config()
/system/extras/tests/fstest/
Drecovery_test.cpp203 strcpy(blk_path_, fstab->recs[i].blk_device); in setCacheInfoFromFstab()