/system/core/fs_mgr/ |
D | fs_mgr.c | 96 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 …]
|
D | fs_mgr_format.c | 108 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()
|
D | fs_mgr_fstab.c | 302 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()
|
D | fs_mgr_verity.c | 189 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/ |
D | recovery_test.cpp | 187 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/ |
D | fs.c | 41 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()
|
D | fs.h | 12 const struct fs_generator* fs_get_generator(const char *fs_type);
|
D | engine.c | 111 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/ |
D | fs_mgr.h | 57 char *fs_type; member 97 const char *mount_point, const char *fs_type,
|
/system/vold/ |
D | TrimTask.cpp | 74 if (!strcmp(fstab->recs[i].fs_type, "emmc") || in addFromFstab() 75 !strcmp(fstab->recs[i].fs_type, "mtd")) { in addFromFstab()
|
D | cryptfs.c | 2833 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);
|