/system/core/fs_mgr/include/ |
fs_mgr.h | 35 * The entries must be kept in the same order as they were seen in the fstab. 39 struct fstab { struct 61 struct fstab *fs_mgr_read_fstab(const char *fstab_path); 62 void fs_mgr_free_fstab(struct fstab *fstab); 68 int fs_mgr_mount_all(struct fstab *fstab); 72 int fs_mgr_do_mount(struct fstab *fstab, char *n_name, char *n_blk_device, 75 int fs_mgr_unmount_all(struct fstab *fstab) [all...] |
/system/core/fs_mgr/ |
fs_mgr_priv_verity.h | 20 int fs_mgr_setup_verity(struct fstab_rec *fstab);
|
fs_mgr_fstab.c | 179 struct fstab *fs_mgr_read_fstab(const char *fstab_path) 188 struct fstab *fstab = NULL; local 217 ERROR("No entries found in fstab\n"); 221 /* Allocate and init the fstab structure */ 222 fstab = calloc(1, sizeof(struct fstab)); 223 fstab->num_entries = entries; 224 fstab->fstab_filename = strdup(fstab_path); 225 fstab->recs = calloc(fstab->num_entries, sizeof(struct fstab_rec)) [all...] |
fs_mgr.c | 269 * Tries to mount any of the consecutive fstab entries that match 270 * the mountpoint of the one given by fstab->recs[start_idx]. 273 * attempted_idx: On return, will indicate which fstab rec 279 static int mount_with_alternatives(struct fstab *fstab, int start_idx, int *end_idx, int *attempted_idx) 285 if (!end_idx || !attempted_idx || start_idx >= fstab->num_entries) { 292 /* Hunt down an fstab entry for the same mount point that might succeed */ 294 /* We required that fstab entries for the same mountpoint be consecutive */ 295 i < fstab->num_entries && !strcmp(fstab->recs[start_idx].mount_point, fstab->recs[i].mount_point) [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);
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/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.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...] |
/system/vold/ |
fstrim.c | 65 extern struct fstab *fstab; 73 for (i = 0; i < fstab->num_entries; i++) { 75 if (!strcmp(fstab->recs[i].fs_type, "emmc") || 76 !strcmp(fstab->recs[i].fs_type, "mtd")) { 80 if (fstab->recs[i].flags & MS_RDONLY) { 83 if (fs_mgr_is_voldmanaged(&fstab->recs[i])) { 87 if (stat(fstab->recs[i].mount_point, &sb) == -1) { 88 SLOGE("Cannot stat mount point %s\n", fstab->recs[i].mount_point); 93 SLOGE("%s is not a directory\n", fstab->recs[i].mount_point) [all...] |
main.cpp | 43 #define FSTAB_PREFIX "/fstab." 44 struct fstab *fstab; variable in typeref:struct:fstab 165 fstab = fs_mgr_read_fstab(fstab_filename); 166 if (!fstab) { 172 for (i = 0; i < fstab->num_entries; i++) { 173 if (fs_mgr_is_voldmanaged(&fstab->recs[i])) { 178 if (fs_mgr_is_nonremovable(&fstab->recs[i])) { 181 if (fs_mgr_is_encryptable(&fstab->recs[i])) { 185 if (fs_mgr_is_noemulatedsd(&fstab->recs[i]) & [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."
|
/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
|
/device/asus/grouper/ |
device.mk | 21 device/asus/grouper/fstab.grouper:root/fstab.grouper \
|
releasetools.py | 51 fstab = info.info_dict["fstab"] 56 (fstab["/staging"].device,))
|
/device/asus/tilapia/ |
releasetools.py | 72 fstab = info.info_dict["fstab"] 77 (fstab["/staging"].device,)) 81 fstab = info.info_dict["fstab"] 89 (fstab["/radio"].device, fstab["/radio"].device))
|
device.mk | 23 device/asus/tilapia/fstab.grouper:root/fstab.grouper \
|
/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 | 23 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 | 37 $(LOCAL_PATH)/fstab.ranchu:root/fstab.ranchu \
|
/system/core/adb/ |
disable_verity_service.c | 32 #define FSTAB_PREFIX "/fstab." 33 struct fstab *fstab; variable in typeref:struct:fstab 172 fstab = fs_mgr_read_fstab(fstab_filename); 173 if (!fstab) { 180 for (i = 0; i < fstab->num_entries; i++) { 181 if(fs_mgr_is_verified(&fstab->recs[i])) { 182 if (!disable_verity(fd, fstab->recs[i].blk_device, 183 fstab->recs[i].mount_point)) {
|
/build/target/product/ |
emulator.mk | 48 device/generic/goldfish/fstab.goldfish:root/fstab.goldfish \
|
/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.c | 61 static struct fstab* fstab = NULL; variable in typeref:struct:fstab 108 static struct fstab* read_fstab() 110 fstab = NULL; 112 // The fstab path is always "/fstab.${ro.hardware}". 113 char fstab_path[PATH_MAX+1] = "/fstab."; 119 fstab = fs_mgr_read_fstab(fstab_path); 120 if (!fstab) { 125 return fstab; [all...] |
/build/tools/releasetools/ |
add_img_to_target_files | 129 fstab = info_dict["fstab"] 130 if fstab: 131 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...] |