/system/update_engine/ |
utils_android.cc | 27 // Open the appropriate fstab file and fallback to /fstab.device if 29 static struct fstab* OpenFSTab() { 30 struct fstab* fstab = fs_mgr_read_fstab_default(); local 31 if (fstab != nullptr) 32 return fstab; 34 fstab = fs_mgr_read_fstab("/fstab.device"); 35 return fstab; 43 struct fstab* fstab; local [all...] |
/system/core/fs_mgr/include_fstab/fstab/ |
fstab.h | 29 * The entries must be kept in the same order as they were seen in the fstab. 33 struct fstab { struct 63 struct fstab* fs_mgr_read_fstab_default(); 64 struct fstab* fs_mgr_read_fstab_dt(); 65 struct fstab* fs_mgr_read_fstab(const char* fstab_path); 66 void fs_mgr_free_fstab(struct fstab* fstab); 68 int fs_mgr_add_entry(struct fstab* fstab, const char* mount_point, const char* fs_type, 70 struct fstab_rec* fs_mgr_get_entry_for_mount_point(struct fstab* fstab, const std::string& path) [all...] |
/system/vold/ |
VoldUtil.h | 20 #include <fstab/fstab.h> 23 extern struct fstab *fstab_default;
|
VoldUtil.cpp | 20 struct fstab *fstab_default;
|
/system/core/fs_mgr/include/ |
fs_mgr.h | 25 #include <fstab/fstab.h> 51 typedef void (*fs_mgr_verity_state_callback)(struct fstab_rec *fstab, 63 int fs_mgr_mount_all(struct fstab *fstab, int mount_mode); 69 int fs_mgr_do_mount(struct fstab *fstab, const char *n_name, char *n_blk_device, 73 int fs_mgr_unmount_all(struct fstab *fstab); 74 struct fstab_rec const* fs_mgr_get_crypt_entry(struct fstab const* fstab) [all...] |
/system/core/fs_mgr/ |
fs_mgr_slotselect.cpp | 33 // Updates |fstab| for slot_suffix. Returns true on success, false on error. 34 bool fs_mgr_update_for_slotselect(struct fstab *fstab) { 38 for (n = 0; n < fstab->num_entries; n++) { 39 if (fstab->recs[n].fs_mgr_flags & MF_SLOTSELECT) { 46 if (asprintf(&tmp, "%s%s", fstab->recs[n].blk_device, ab_suffix.c_str()) > 0) { 47 free(fstab->recs[n].blk_device); 48 fstab->recs[n].blk_device = tmp;
|
fs_mgr_fstab.cpp | 402 std::string file_name = get_android_dt_dir() + "/fstab/compatible"; 404 if (dt_value == "android,fstab") { 417 std::string fstabdir_name = get_android_dt_dir() + "/fstab"; 422 // Each element in fstab_dt_entries is <mount point, the line format in fstab file>. 506 static struct fstab *fs_mgr_read_fstab_file(FILE *fstab_file) 514 struct fstab *fstab = NULL; local 537 LERROR << "No entries found in fstab"; 541 /* Allocate and init the fstab structure */ 542 fstab = static_cast<struct fstab *>(calloc(1, sizeof(struct fstab))) 728 struct fstab *fstab; local 766 struct fstab *fstab = fs_mgr_read_fstab_file(fstab_file.get()); local 812 struct fstab* fstab = nullptr; local [all...] |
fs_mgr.cpp | 349 // The size to reserve is given in the fstab, but we won't reserve more 412 // If the "check" option was given in the fstab record, or it seems that the 416 // the fstab record. 552 * Tries to mount any of the consecutive fstab entries that match 553 * the mountpoint of the one given by fstab->recs[start_idx]. 556 * attempted_idx: On return, will indicate which fstab rec 562 static int mount_with_alternatives(struct fstab *fstab, int start_idx, int *end_idx, int *attempted_idx) 568 if (!end_idx || !attempted_idx || start_idx >= fstab->num_entries) { 575 /* Hunt down an fstab entry for the same mount point that might succeed * [all...] |
fs_mgr_format.cpp | 136 int fs_mgr_do_format(struct fstab_rec *fstab, bool crypt_footer) 140 LERROR << __FUNCTION__ << ": Format " << fstab->blk_device 141 << " as '" << fstab->fs_type << "'"; 143 if (!strncmp(fstab->fs_type, "f2fs", 4)) { 144 rc = format_f2fs(fstab->blk_device, fstab->length, crypt_footer); 145 } else if (!strncmp(fstab->fs_type, "ext4", 4)) { 146 rc = format_ext4(fstab->blk_device, fstab->mount_point, crypt_footer); 148 LERROR << "File system type '" << fstab->fs_type << "' is not supported" [all...] |
fs_mgr_priv_avb_ops.h | 49 FsManagerAvbOps(const fstab& fstab);
|
fs_mgr_verity.cpp | 574 static int compare_last_signature(struct fstab_rec *fstab, int *match) 587 if (fec_open(&f, fstab->blk_device, O_RDONLY, FEC_VERITY_DISABLE, 589 PERROR << "Failed to open '" << fstab->blk_device << "'"; 595 PERROR << "Failed to get verity metadata '" << fstab->blk_device << "'"; 602 basename(fstab->mount_point)) >= (int)sizeof(tag)) { 603 LERROR << "Metadata tag name too long for " << fstab->mount_point; 607 if (metadata_find(fstab->verity_loc, tag, SHA256_DIGEST_LENGTH, 612 fd = TEMP_FAILURE_RETRY(open(fstab->verity_loc, O_RDWR | O_SYNC | O_CLOEXEC)); 615 PERROR << "Failed to open " << fstab->verity_loc; 622 << fstab->verity_loc << " offset " << offset [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/libvintf/ |
VintfObjectRecovery.cpp | 28 using FstabMgr = std::unique_ptr<struct fstab, decltype(&fs_mgr_free_fstab)>; 30 static status_t mountAt(const FstabMgr &fstab, const char* path, const char* mount_point) { 31 fstab_rec* rec = fs_mgr_get_entry_for_mount_point(fstab.get(), path); 46 FstabMgr fstab = defaultFstabMgr(); variable 47 if (fstab == NULL) { 51 return mountAt(fstab, "/", "/system_root"); 53 return mountAt(fstab, "/system", "/system"); 58 FstabMgr fstab = defaultFstabMgr(); variable 59 if (fstab == NULL) { 62 return mountAt(fstab, "/vendor", "/vendor") [all...] |
/build/make/target/product/ |
aosp_mips.mk | 26 device/generic/goldfish/fstab.ranchu.mips:root/fstab.ranchu \ 27 device/generic/goldfish/fstab.ranchu.early.arm:root/fstab.ranchu.early
|
aosp_arm.mk | 26 device/generic/goldfish/fstab.ranchu.arm:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ranchu
|
sdk_phone_armv7.mk | 26 device/generic/goldfish/fstab.ranchu.arm:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ranchu
|
aosp_mips64.mk | 31 device/generic/goldfish/fstab.ranchu.mips:root/fstab.ranchu \ 32 device/generic/goldfish/fstab.ranchu.early.arm:root/fstab.ranchu.early
|
sdk_phone_arm64.mk | 31 device/generic/goldfish/fstab.ranchu.arm:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ranchu
|
/system/extras/boot_control_copy/ |
bootinfo.cpp | 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...] |
/device/google/cuttlefish_common/host/config/ |
cuttlefish.dts | 23 fstab { 24 compatible = "android,fstab";
|
/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
|
/system/core/adb/ |
set_verity_enable_state_service.cpp | 40 struct fstab *fstab; variable in typeref:struct:fstab 181 // read all fstab entries at once from all sources 182 fstab = fs_mgr_read_fstab_default(); 183 if (!fstab) { 184 WriteFdFmt(fd, "Failed to read fstab\nMaybe run adb root?\n"); 189 for (int i = 0; i < fstab->num_entries; i++) { 190 if (fs_mgr_is_verified(&fstab->recs[i])) { 191 if (set_verity_enabled_state(fd, fstab->recs[i].blk_device, 192 fstab->recs[i].mount_point, enable)) [all...] |
/external/avb/libavb_user/ |
avb_ops_user.cpp | 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...] |