Home
last modified time | relevance | path

Searched refs:fs_type (Results 1 – 11 of 11) 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
109 if (!strcmp(fs_type, "ext2") || !strcmp(fs_type, "ext3") || !strcmp(fs_type, "ext4")) { in check_fs()
124 ret = mount(blk_device, target, fs_type, tmpmnt_flags, tmpmnt_opts); in check_fs()
126 __func__, blk_device, target, fs_type, ret, strerror(errno)); in check_fs()
161 } else if (!strcmp(fs_type, "f2fs")) { in check_fs()
233 ret = mount(source, target, rec->fs_type, mountflags, rec->fs_options); in __mount()
235 INFO("%s(source=%s,target=%s,type=%s)=%d\n", __func__, source, target, rec->fs_type, ret); in __mount()
327 … fstab->recs[i].mount_point, i, fstab->recs[i].fs_type, fstab->recs[*attempted_idx].fs_type); in mount_with_alternatives()
332 check_fs(fstab->recs[i].blk_device, fstab->recs[i].fs_type, in mount_with_alternatives()
340 … fstab->recs[i].blk_device, fstab->recs[i].mount_point, fstab->recs[i].fs_type, in mount_with_alternatives()
[all …]
Dfs_mgr_format.c108 ERROR("%s: Format %s as '%s'.\n", __func__, fstab->blk_device, fstab->fs_type); in fs_mgr_do_format()
110 if (!strncmp(fstab->fs_type, "f2fs", 4)) { in fs_mgr_do_format()
112 } else if (!strncmp(fstab->fs_type, "ext4", 4)) { in fs_mgr_do_format()
115 ERROR("File system type '%s' is not supported\n", fstab->fs_type); in fs_mgr_do_format()
Dfs_mgr_fstab.c302 fstab->recs[cnt].fs_type = strdup(p); in fs_mgr_read_fstab()
358 free(fstab->recs[i].fs_type); in fs_mgr_free_fstab()
376 const char *mount_point, const char *fs_type, in fs_mgr_add_entry() argument
392 new_fstab_recs[n].fs_type = strdup(fs_type); in fs_mgr_add_entry()
Dfs_mgr_verity.c189 static int get_fs_size(char *fs_type, char *blk_device, uint64_t *device_size) { in get_fs_size() argument
190 if (!strcmp(fs_type, "ext4")) { in get_fs_size()
195 } else if (!strcmp(fs_type, "squashfs")) { in get_fs_size()
201 ERROR("%s: Unsupported filesystem for verity.", fs_type); in get_fs_size()
693 if (get_fs_size(fstab->fs_type, fstab->blk_device, &device_size) < 0) { in compare_last_signature()
965 if (get_fs_size(fstab->fs_type, fstab->blk_device, &device_size) < 0) { in fs_mgr_setup_verity()
/system/extras/tests/fstest/
Drecovery_test.cpp187 FsRecoveryTest() : fs_type(FS_UNKNOWN), blk_fd_(-1) {} in FsRecoveryTest()
190 fs_type = FS_UNKNOWN; in setCacheInfoFromFstab()
204 if (!strcmp(fstab->recs[i].fs_type, "ext4")) { in setCacheInfoFromFstab()
205 fs_type = FS_EXT4; in setCacheInfoFromFstab()
207 } else if (!strcmp(fstab->recs[i].fs_type, "f2fs")) { in setCacheInfoFromFstab()
208 fs_type = FS_F2FS; in setCacheInfoFromFstab()
215 return fs_type != FS_UNKNOWN; in setCacheInfoFromFstab()
273 Fs_Type fs_type; member in android::FsRecoveryTest
281 if (fs_type != FS_EXT4) { in TEST_F()
299 if (fs_type != FS_EXT4) { in TEST_F()
/system/core/fastboot/
Dfs.c41 char *fs_type; //must match what fastboot reports for partition type member
51 const struct fs_generator* fs_get_generator(const char *fs_type) in fs_get_generator() argument
56 if (!strcmp(generators[i].fs_type, fs_type)) in fs_get_generator()
Dfs.h12 const struct fs_generator* fs_get_generator(const char *fs_type);
Dengine.c111 char fs_type[FB_RESPONSE_SZ + 1] = {0,}; in fb_format_supported() local
117 status = fb_getvar(usb, fs_type, "partition-type:%s", partition); in fb_format_supported()
121 return !!fs_get_generator(fs_type); in fb_format_supported()
/system/core/fs_mgr/include/
Dfs_mgr.h57 char *fs_type; member
97 const char *mount_point, const char *fs_type,
/system/vold/
DTrimTask.cpp74 if (!strcmp(fstab->recs[i].fs_type, "emmc") || in addFromFstab()
75 !strcmp(fstab->recs[i].fs_type, "mtd")) { in addFromFstab()
Dcryptfs.c2833 if (!strcmp(rec->fs_type, "ext4")) {
2835 } else if (!strcmp(rec->fs_type, "f2fs")) {
2859 int fs_type = get_fs_type(rec); local
2860 if (fs_type < 0) {
2861 SLOGE("cryptfs_enable: unsupported fs type %s\n", rec->fs_type);
2864 rc = cryptfs_enable_wipe(crypto_blkdev, crypt_ftr->fs_size, fs_type);