/system/update_engine/ |
utils_android.cc | 28 // Open the appropriate fstab file and fallback to /fstab.device if 30 static struct fstab* OpenFSTab() { 31 struct fstab* fstab = fs_mgr_read_fstab_default(); local 32 if (fstab != nullptr) 33 return fstab; 35 fstab = fs_mgr_read_fstab("/fstab.device"); 36 return fstab; 44 struct fstab* fstab; local [all...] |
/system/core/fs_mgr/include_fstab/fstab/ |
fstab.h | 34 * The entries must be kept in the same order as they were seen in the fstab. 38 struct fstab { struct 67 struct fstab* fs_mgr_read_fstab_default(); 68 struct fstab* fs_mgr_read_fstab_dt(); 69 struct fstab* fs_mgr_read_fstab(const char* fstab_path); 70 void fs_mgr_free_fstab(struct fstab* fstab); 72 int fs_mgr_add_entry(struct fstab* fstab, const char* mount_point, const char* fs_type, 74 struct fstab_rec* fs_mgr_get_entry_for_mount_point(struct fstab* fstab, const char* path) [all...] |
/system/core/fs_mgr/include/ |
fs_mgr.h | 25 #include <fstab/fstab.h> 53 typedef void (*fs_mgr_verity_state_callback)(struct fstab_rec *fstab, 65 int fs_mgr_mount_all(struct fstab *fstab, int mount_mode); 71 int fs_mgr_do_mount(struct fstab *fstab, const char *n_name, char *n_blk_device, 75 int fs_mgr_unmount_all(struct fstab *fstab); 76 struct fstab_rec const* fs_mgr_get_crypt_entry(struct fstab const* fstab) [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...] |
/system/core/fs_mgr/ |
fs_mgr_slotselect.cpp | 40 // Updates |fstab| for slot_suffix. Returns true on success, false on error. 41 bool fs_mgr_update_for_slotselect(struct fstab *fstab) { 45 for (n = 0; n < fstab->num_entries; n++) { 46 if (fstab->recs[n].fs_mgr_flags & MF_SLOTSELECT) { 53 if (asprintf(&tmp, "%s%s", fstab->recs[n].blk_device, ab_suffix.c_str()) > 0) { 54 free(fstab->recs[n].blk_device); 55 fstab->recs[n].blk_device = tmp;
|
fs_mgr.cpp | 339 // The size to reserve is given in the fstab, but we won't reserve more 401 // If the "check" option was given in the fstab record, or it seems that the 405 // the fstab record. 550 * Tries to mount any of the consecutive fstab entries that match 551 * the mountpoint of the one given by fstab->recs[start_idx]. 554 * attempted_idx: On return, will indicate which fstab rec 560 static int mount_with_alternatives(struct fstab *fstab, int start_idx, int *end_idx, int *attempted_idx) 566 if (!end_idx || !attempted_idx || start_idx >= fstab->num_entries) { 573 /* Hunt down an fstab entry for the same mount point that might succeed * [all...] |
fs_mgr_fstab.cpp | 389 std::string file_name = get_android_dt_dir() + "/fstab/compatible"; 391 if (dt_value == "android,fstab") { 400 std::string fstab; local 402 return fstab; 405 std::string fstabdir_name = get_android_dt_dir() + "/fstab"; 407 if (!fstabdir) return fstab; 430 fstab.clear(); 439 fstab.clear(); 447 fstab.clear(); 455 fstab.clear() 487 struct fstab *fstab = NULL; local 655 struct fstab *fstab; local 693 struct fstab *fstab = fs_mgr_read_fstab_file(fstab_file.get()); local 727 struct fstab *fstab = fs_mgr_read_fstab(default_fstab.c_str()); local [all...] |
fs_mgr_main.cpp | 90 struct fstab *fstab=NULL; local 98 /* The name of the fstab file is last, after the option */ 101 fstab = fs_mgr_read_fstab(fstab_file); 104 return fs_mgr_mount_all(fstab, MOUNT_MODE_DEFAULT); 106 return fs_mgr_do_mount(fstab, n_name, (char *)n_blk_dev, 0); 108 return fs_mgr_unmount_all(fstab); 114 fs_mgr_free_fstab(fstab);
|
fs_mgr_format.cpp | 96 int fs_mgr_do_format(struct fstab_rec *fstab, bool crypt_footer) 100 LERROR << __FUNCTION__ << ": Format " << fstab->blk_device 101 << " as '" << fstab->fs_type << "'"; 103 if (!strncmp(fstab->fs_type, "f2fs", 4)) { 104 rc = format_f2fs(fstab->blk_device); 105 } else if (!strncmp(fstab->fs_type, "ext4", 4)) { 106 rc = format_ext4(fstab->blk_device, fstab->mount_point, crypt_footer); 108 LERROR << "File system type '" << fstab->fs_type << "' is not supported";
|
fs_mgr_priv_avb_ops.h | 49 FsManagerAvbOps(const fstab& fstab);
|
/system/libvintf/ |
VintfObjectRecovery.cpp | 29 using FstabMgr = std::unique_ptr<struct fstab, decltype(&fs_mgr_free_fstab)>; 31 static status_t mountAt(const FstabMgr &fstab, const char* path, const char* mount_point) { 32 fstab_rec* rec = fs_mgr_get_entry_for_mount_point(fstab.get(), path); 47 FstabMgr fstab = defaultFstabMgr(); variable 48 if (fstab == NULL) { 52 return mountAt(fstab, "/", "/system_root"); 54 return mountAt(fstab, "/system", "/system"); 59 FstabMgr fstab = defaultFstabMgr(); variable 60 if (fstab == NULL) { 63 return mountAt(fstab, "/vendor", "/vendor") [all...] |
/build/make/target/product/ |
aosp_arm.mk | 26 device/generic/goldfish/fstab.ranchu.arm:root/fstab.ranchu \ 27 device/generic/goldfish/fstab.ranchu.early.arm:root/fstab.ranchu.early
|
sdk_phone_arm64.mk | 31 device/generic/goldfish/fstab.ranchu.arm:root/fstab.ranchu \ 32 device/generic/goldfish/fstab.ranchu.early.arm:root/fstab.ranchu.early
|
sdk_phone_armv7.mk | 26 device/generic/goldfish/fstab.ranchu.arm:root/fstab.ranchu \ 27 device/generic/goldfish/fstab.ranchu.early.arm:root/fstab.ranchu.early
|
aosp_arm64.mk | 31 device/generic/goldfish/fstab.ranchu.arm:root/fstab.ranchu \ 32 device/generic/goldfish/fstab.ranchu.early.arm:root/fstab.ranchu.early
|
/system/extras/boot_control_copy/ |
bootinfo.c | 38 // Open the appropriate fstab file and fallback to /fstab.device if 40 static struct fstab *open_fstab(void) 42 struct fstab *fstab = fs_mgr_read_fstab_default(); local 43 if (fstab != NULL) 44 return fstab; 46 fstab = fs_mgr_read_fstab("/fstab.device"); 47 return fstab; 54 struct fstab *fstab; local [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."
|
/external/ltp/tools/pounder21/src/ |
libidecd.sh | 26 NUM_DEVICES=`/bin/ls $(egrep '(cdr|dvd)' /etc/fstab | awk -F " " '{print $1}') /dev/cdr* /dev/dvd* /dev/cdrom/* /dev/sr* 2> /dev/null | sort | uniq | wc -l` 31 /bin/ls $(egrep '(cdr|dvd)' /etc/fstab | awk -F " " '{print $1}') /dev/cdr* /dev/dvd* /dev/cdrom/* /dev/sr* 2> /dev/null | sort | uniq 51 # list of potential discs AND isn't in fstab? 53 # elsewhere ... but we also assume that anything in fstab was 58 IN_FSTAB=`grep "^$i[ ]" /etc/fstab -c` 67 IN_FSTAB=`grep -c "^$i[ ]" /etc/fstab` 68 FSTAB_TYPE=`grep "^$i[ ]" /etc/fstab | awk -F " " '{print $3}'` 70 # This device is listed in fstab and is NOT of 83 # Not in fstab, or the mount failed.
|
/device/google/marlin/ |
aosp_marlin_svelte.mk | 21 PRODUCT_COPY_FILES += device/google/marlin/fstab.aosp_svelte:root/fstab.marlin
|
aosp_marlin.mk | 34 PRODUCT_COPY_FILES += device/google/marlin/fstab.common:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.marlin
|
/system/core/adb/ |
set_verity_enable_state_service.cpp | 40 struct fstab *fstab; variable in typeref:struct:fstab 184 // read all fstab entries at once from all sources 185 fstab = fs_mgr_read_fstab_default(); 186 if (!fstab) { 187 WriteFdFmt(fd, "Failed to read fstab\nMaybe run adb root?\n"); 192 for (int i = 0; i < fstab->num_entries; i++) { 193 if (fs_mgr_is_verified(&fstab->recs[i])) { 194 if (set_verity_enabled_state(fd, fstab->recs[i].blk_device, 195 fstab->recs[i].mount_point, enable)) [all...] |
/system/vold/ |
TrimTask.cpp | 50 // Collect both fstab and vold volumes 68 std::unique_ptr<fstab, decltype(&fs_mgr_free_fstab)> fstab(fs_mgr_read_fstab_default(), 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])) { 92 if (prev_rec && !strcmp(prev_rec->mount_point, fstab->recs[i].mount_point)) [all...] |
/external/avb/libavb_user/ |
avb_ops_user.c | 42 /* Open the appropriate fstab file and fallback to /fstab.device if 45 static struct fstab* open_fstab(void) { 46 struct fstab* fstab = fs_mgr_read_fstab_default(); local 48 if (fstab != NULL) { 49 return fstab; 52 fstab = fs_mgr_read_fstab("/fstab.device"); 53 return fstab; 59 struct fstab* fstab; local [all...] |
/device/generic/qemu/ |
ranchu_arm64.mk | 33 $(LOCAL_PATH)/fstab.ranchu:root/fstab.ranchu \
|