/system/core/fs_mgr/include/ |
fs_mgr.h | 44 * The entries must be kept in the same order as they were seen in the fstab. 48 struct fstab { struct 71 typedef void (*fs_mgr_verity_state_callback)(struct fstab_rec *fstab, 74 struct fstab *fs_mgr_read_fstab(const char *fstab_path); 75 void fs_mgr_free_fstab(struct fstab *fstab); 84 int fs_mgr_mount_all(struct fstab *fstab); 88 int fs_mgr_do_mount(struct fstab *fstab, char *n_name, char *n_blk_device [all...] |
/system/core/fs_mgr/ |
fs_mgr_priv_verity.h | 20 int fs_mgr_setup_verity(struct fstab_rec *fstab);
|
fs_mgr.c | 292 * Tries to mount any of the consecutive fstab entries that match 293 * the mountpoint of the one given by fstab->recs[start_idx]. 296 * attempted_idx: On return, will indicate which fstab rec 302 static int mount_with_alternatives(struct fstab *fstab, int start_idx, int *end_idx, int *attempted_idx) 308 if (!end_idx || !attempted_idx || start_idx >= fstab->num_entries) { 315 /* Hunt down an fstab entry for the same mount point that might succeed */ 317 /* We required that fstab entries for the same mountpoint be consecutive */ 318 i < fstab->num_entries && !strcmp(fstab->recs[start_idx].mount_point, fstab->recs[i].mount_point) [all...] |
fs_mgr_fstab.c | 211 struct fstab *fs_mgr_read_fstab(const char *fstab_path) 220 struct fstab *fstab = NULL; local 249 ERROR("No entries found in fstab\n"); 253 /* Allocate and init the fstab structure */ 254 fstab = calloc(1, sizeof(struct fstab)); 255 fstab->num_entries = entries; 256 fstab->fstab_filename = strdup(fstab_path); 257 fstab->recs = calloc(fstab->num_entries, sizeof(struct fstab_rec)) [all...] |
fs_mgr_main.c | 86 struct fstab *fstab=NULL; local 93 /* The name of the fstab file is last, after the option */ 96 fstab = fs_mgr_read_fstab(fstab_file); 99 return fs_mgr_mount_all(fstab); 101 return fs_mgr_do_mount(fstab, n_name, n_blk_dev, 0); 103 return fs_mgr_unmount_all(fstab); 109 fs_mgr_free_fstab(fstab);
|
fs_mgr_format.c | 104 int fs_mgr_do_format(struct fstab_rec *fstab) 108 ERROR("%s: Format %s as '%s'.\n", __func__, fstab->blk_device, fstab->fs_type); 110 if (!strncmp(fstab->fs_type, "f2fs", 4)) { 111 rc = format_f2fs(fstab->blk_device); 112 } else if (!strncmp(fstab->fs_type, "ext4", 4)) { 113 rc = format_ext4(fstab->blk_device, fstab->mount_point); 115 ERROR("File system type '%s' is not supported\n", fstab->fs_type);
|
fs_mgr_verity.c | 46 #define FSTAB_PREFIX "/fstab." 679 static int compare_last_signature(struct fstab_rec *fstab, int *match) 693 if (get_fs_size(fstab->fs_type, fstab->blk_device, &device_size) < 0) { 698 if (read_verity_metadata(device_size, fstab->blk_device, &signature, NULL) < 0) { 699 ERROR("Failed to read verity signature from %s\n", fstab->mount_point); 706 basename(fstab->mount_point)) >= (int)sizeof(tag)) { 707 ERROR("Metadata tag name too long for %s\n", fstab->mount_point); 711 if (metadata_find(fstab->verity_loc, tag, SHA256_DIGEST_SIZE, 716 fd = TEMP_FAILURE_RETRY(open(fstab->verity_loc, O_RDWR | O_SYNC | O_CLOEXEC)) 818 struct fstab *fstab = NULL; local 872 struct fstab *fstab = NULL; local [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/ |
fstab.h | 29 * @(#)fstab.h 8.1 (Berkeley) 6/2/93 38 * File system table, see fstab(5). 48 #define _PATH_FSTAB "/etc/fstab" 49 #define FSTAB "/etc/fstab" /* deprecated */ 57 struct fstab struct 71 extern struct fstab *getfsent (void) __THROW; 72 extern struct fstab *getfsspec (__const char *__name) __THROW; 73 extern struct fstab *getfsfile (__const char *__name) __THROW; 79 #endif /* fstab.h * [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/ |
fstab.h | 29 * @(#)fstab.h 8.1 (Berkeley) 6/2/93 38 * File system table, see fstab(5). 48 #define _PATH_FSTAB "/etc/fstab" 49 #define FSTAB "/etc/fstab" /* deprecated */ 57 struct fstab struct 71 extern struct fstab *getfsent (void) __THROW; 72 extern struct fstab *getfsspec (__const char *__name) __THROW; 73 extern struct fstab *getfsfile (__const char *__name) __THROW; 79 #endif /* fstab.h * [all...] |
/external/e2fsprogs/install-utils/ |
convfstab | 2 # Make /etc/fstab standard compliant. 20 # Actually there are no comments allowed in /etc/fstab 21 echo "Warning: comment in /etc/fstab detected." >&2 69 done </etc/fstab >/tmp/newfstab.$$ 70 mv -f /etc/fstab /etc/fstab.bak 71 mv -f /tmp/newfstab.$$ /etc/fstab 74 echo "Installation of patched /etc/fstab failed."
|
/system/vold/ |
TrimTask.cpp | 50 // Collect both fstab and vold volumes 68 struct fstab *fstab; local 71 fstab = fs_mgr_read_fstab(android::vold::DefaultFstabPath().c_str()); 72 for (int i = 0; i < fstab->num_entries; i++) { 74 if (!strcmp(fstab->recs[i].fs_type, "emmc") || 75 !strcmp(fstab->recs[i].fs_type, "mtd")) { 79 if (fstab->recs[i].flags & MS_RDONLY) { 82 if (fs_mgr_is_voldmanaged(&fstab->recs[i])) { 85 if (fs_mgr_is_notrim(&fstab->recs[i])) [all...] |
main.cpp | 46 struct fstab *fstab; variable in typeref:struct:fstab 212 fstab = fs_mgr_read_fstab(path.c_str()); 213 if (!fstab) { 214 PLOG(ERROR) << "Failed to open default fstab " << path; 220 for (int i = 0; i < fstab->num_entries; i++) { 221 if (fs_mgr_is_voldmanaged(&fstab->recs[i])) { 222 if (fs_mgr_is_nonremovable(&fstab->recs[i])) { 227 std::string sysPattern(fstab->recs[i].blk_device); 228 std::string nickname(fstab->recs[i].label) [all...] |
/build/target/product/ |
emulator.mk | 53 device/generic/goldfish/fstab.goldfish:root/fstab.goldfish \ 58 device/generic/goldfish/fstab.ranchu:root/fstab.ranchu \
|
/device/asus/flo/ |
device.mk | 26 device/asus/flo/fstab.flo:root/fstab.flo \
|
BoardConfig.mk | 25 TARGET_RECOVERY_FSTAB = device/asus/flo/fstab.flo
|
/bootable/recovery/ |
roots.cpp | 38 static struct fstab *fstab = NULL; variable in typeref:struct:fstab 47 fstab = fs_mgr_read_fstab("/etc/recovery.fstab"); 48 if (!fstab) { 49 LOGE("failed to read /etc/recovery.fstab\n"); 53 ret = fs_mgr_add_entry(fstab, "/tmp", "ramdisk", "ramdisk"); 55 LOGE("failed to add /tmp entry to fstab\n"); 56 fs_mgr_free_fstab(fstab); 57 fstab = NULL [all...] |
/device/asus/deb/ |
device.mk | 24 device/asus/deb/fstab.deb:root/fstab.flo \
|
BoardConfig.mk | 25 TARGET_RECOVERY_FSTAB = device/asus/deb/fstab.deb
|
/device/generic/qemu/ |
ranchu_arm64.mk | 35 $(LOCAL_PATH)/fstab.ranchu:root/fstab.ranchu \
|
qemu_base.mk | 86 device/generic/goldfish/fstab.goldfish:root/fstab.goldfish \
|
/system/core/adb/ |
set_verity_enable_state_service.cpp | 35 #define FSTAB_PREFIX "/fstab." 36 struct fstab *fstab; variable in typeref:struct:fstab 180 fstab = fs_mgr_read_fstab(fstab_filename); 181 if (!fstab) { 187 for (i = 0; i < fstab->num_entries; i++) { 188 if(fs_mgr_is_verified(&fstab->recs[i])) { 189 if (!set_verity_enabled_state(fd, fstab->recs[i].blk_device, 190 fstab->recs[i].mount_point,
|
/system/extras/tests/fstest/ |
recovery_test.cpp | 40 #define FSTAB_PREFIX "/fstab." 196 struct fstab *fstab = fs_mgr_read_fstab(fstab_filename); local 197 if (!fstab) { 201 for (int i = 0; i < fstab->num_entries; ++i) { 202 if (!strcmp(fstab->recs[i].mount_point, "/cache")) { 203 strcpy(blk_path_, fstab->recs[i].blk_device); 204 if (!strcmp(fstab->recs[i].fs_type, "ext4")) { 207 } else if (!strcmp(fstab->recs[i].fs_type, "f2fs")) { 213 fs_mgr_free_fstab(fstab); [all...] |
/bootable/recovery/uncrypt/ |
uncrypt.cpp | 67 static struct fstab* fstab = NULL; variable in typeref:struct:fstab 114 static struct fstab* read_fstab() { 115 fstab = NULL; 117 // The fstab path is always "/fstab.${ro.hardware}". 118 char fstab_path[PATH_MAX+1] = "/fstab."; 124 fstab = fs_mgr_read_fstab(fstab_path); 125 if (!fstab) { 130 return fstab; [all...] |
/build/tools/releasetools/ |
add_img_to_target_files | 118 fstab = info_dict["fstab"] 119 if fstab: 120 image_props["fs_type"] = fstab["/" + what].fs_type 181 fstab = OPTIONS.info_dict["fstab"] 182 if fstab: 183 image_props["fs_type"] = fstab["/data"].fs_type 218 fstab = OPTIONS.info_dict["fstab"] [all...] |
add_img_to_target_files.py | 118 fstab = info_dict["fstab"] 119 if fstab: 120 image_props["fs_type"] = fstab["/" + what].fs_type 181 fstab = OPTIONS.info_dict["fstab"] 182 if fstab: 183 image_props["fs_type"] = fstab["/data"].fs_type 218 fstab = OPTIONS.info_dict["fstab"] [all...] |