Searched refs:fstab (Results 1 - 25 of 29) sorted by relevance

12

/system/update_engine/
H A Dutils_android.cc27 // 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/
H A Dfstab.h29 * 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* fsta
[all...]
/system/vold/
H A DVoldUtil.h20 #include <fstab/fstab.h>
23 extern struct fstab *fstab_default;
H A DVoldUtil.cpp20 struct fstab *fstab_default;
H A DIdleMaint.cpp100 std::unique_ptr<fstab, decltype(&fs_mgr_free_fstab)> fstab(fs_mgr_read_fstab_default(),
104 for (int i = 0; i < fstab->num_entries; i++) {
105 auto fs_type = std::string(fstab->recs[i].fs_type);
111 if (fstab->recs[i].flags & MS_RDONLY) {
114 if (fs_mgr_is_voldmanaged(&fstab->recs[i])) {
117 if (fs_mgr_is_notrim(&fstab->recs[i])) {
124 if (prev_rec && !strcmp(prev_rec->mount_point, fstab->recs[i].mount_point)) {
129 paths->push_back(fstab->recs[i].mount_point);
132 if (std::string(fstab
[all...]
/system/core/fs_mgr/include/
H A Dfs_mgr.h25 #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 cons
[all...]
H A Dfs_mgr_avb.h58 // name to by-name symlink, or a fstab file to which the ByNameSymlinkMap is
85 static FsManagerAvbUniquePtr Open(const fstab& fstab);
88 // Sets up dm-verity on the given fstab entry.
/system/core/fs_mgr/
H A Dfs_mgr_slotselect.cpp33 // Updates |fstab| for slot_suffix. Returns true on success, false on error.
34 bool fs_mgr_update_for_slotselect(struct fstab *fstab) { argument
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;
H A Dfs_mgr_fstab.cpp402 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
692 extract_boot_devices(const fstab& fstab) argument
728 struct fstab *fstab; local
766 struct fstab *fstab = fs_mgr_read_fstab_file(fstab_file.get()); local
812 struct fstab* fstab = nullptr; local
826 fs_mgr_free_fstab(struct fstab *fstab) argument
857 fs_mgr_add_entry(struct fstab *fstab, const char *mount_point, const char *fs_type, const char *blk_device) argument
889 fs_mgr_get_entry_for_mount_point(struct fstab* fstab, const std::string& path) argument
918 fs_mgr_is_voldmanaged(const struct fstab_rec *fstab) argument
923 fs_mgr_is_nonremovable(const struct fstab_rec *fstab) argument
928 fs_mgr_is_verified(const struct fstab_rec *fstab) argument
933 fs_mgr_is_avb(const struct fstab_rec *fstab) argument
938 fs_mgr_is_verifyatboot(const struct fstab_rec *fstab) argument
943 fs_mgr_is_encryptable(const struct fstab_rec *fstab) argument
948 fs_mgr_is_file_encrypted(const struct fstab_rec *fstab) argument
953 fs_mgr_get_file_encryption_modes(const struct fstab_rec *fstab, const char **contents_mode_ret, const char **filenames_mode_ret) argument
963 fs_mgr_is_convertible_to_fbe(const struct fstab_rec *fstab) argument
968 fs_mgr_is_noemulatedsd(const struct fstab_rec *fstab) argument
973 fs_mgr_is_notrim(const struct fstab_rec* fstab) argument
977 fs_mgr_is_formattable(const struct fstab_rec* fstab) argument
981 fs_mgr_is_slotselect(const struct fstab_rec* fstab) argument
985 fs_mgr_is_nofail(const struct fstab_rec* fstab) argument
989 fs_mgr_is_latemount(const struct fstab_rec* fstab) argument
993 fs_mgr_is_quota(const struct fstab_rec* fstab) argument
997 fs_mgr_has_sysfs_path(const struct fstab_rec *fstab) argument
[all...]
H A Dfs_mgr.cpp349 // 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) argument
568 if (!end_idx || !attempted_idx || start_idx >= fstab->num_entries) {
575 /* Hunt down an fstab entr
802 fs_mgr_mount_all(struct fstab *fstab, int mount_mode) argument
1040 fs_mgr_do_mount(struct fstab *fstab, const char *n_name, char *n_blk_device, char *tmp_mount_point) argument
1156 fs_mgr_unmount_all(struct fstab *fstab) argument
1180 fs_mgr_swapon_all(struct fstab *fstab) argument
1271 fs_mgr_get_crypt_entry(struct fstab const* fstab) argument
1295 fs_mgr_get_crypt_info(struct fstab* fstab, char* key_loc, char* real_blk_device, size_t size) argument
[all...]
H A Dfs_mgr_format.cpp136 int fs_mgr_do_format(struct fstab_rec *fstab, bool crypt_footer) argument
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
[all...]
H A Dfs_mgr_verity.cpp574 static int compare_last_signature(struct fstab_rec *fstab, int *match) argument
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
645 get_verity_state_offset(struct fstab_rec *fstab, off64_t *offset) argument
659 load_verity_state(struct fstab_rec* fstab, int* mode) argument
754 fs_mgr_setup_verity(struct fstab_rec *fstab, bool wait_for_verity_dev) argument
[all...]
H A Dfs_mgr_priv_avb_ops.h49 FsManagerAvbOps(const fstab& fstab);
H A Dfs_mgr_priv.h50 /* fstab has the following format:
122 bool fs_mgr_update_for_slotselect(struct fstab *fstab);
126 int load_verity_state(struct fstab_rec* fstab, int* mode);
H A Dfs_mgr_avb_ops.cpp124 FsManagerAvbOps::FsManagerAvbOps(const fstab& fstab) { argument
125 // Constructs the by-name symlink map for each fstab record.
128 for (int i = 0; i < fstab.num_entries; i++) {
129 std::string partition_name = basename(fstab.recs[i].blk_device);
130 by_name_symlink_map_[partition_name] = fstab.recs[i].blk_device;
H A Dfs_mgr_avb.cpp476 FsManagerAvbUniquePtr FsManagerAvbHandle::Open(const fstab& fstab) { argument
477 FsManagerAvbOps avb_ops(fstab);
/system/libvintf/
H A DVintfObjectRecovery.cpp28 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) { argument
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, "/vendo
[all...]
/system/extras/boot_control_copy/
H A Dbootinfo.cpp38 // 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...]
/system/core/adb/
H A Dset_verity_enable_state_service.cpp40 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
[all...]
H A Dremount_service.cpp55 // Returns the device used to mount a directory in the fstab.
57 std::unique_ptr<fstab, decltype(&fs_mgr_free_fstab)> fstab(fs_mgr_read_fstab_default(),
59 struct fstab_rec* rec = fs_mgr_get_entry_for_mount_point(fstab.get(), dir);
63 // The proc entry for / is full of lies, so check fstab instead.
94 // it's not convenient to put in the fstab.
/system/extras/tests/fstest/
H A Drecovery_test.cpp191 struct fstab *fstab = fs_mgr_read_fstab_default(); local
192 if (!fstab) {
193 testPrintE("failed to open default fstab\n");
196 for (int i = 0; i < fstab->num_entries; ++i) {
197 if (!strcmp(fstab->recs[i].mount_point, "/cache")) {
198 strcpy(blk_path_, fstab->recs[i].blk_device);
199 if (!strcmp(fstab->recs[i].fs_type, "ext4")) {
202 } else if (!strcmp(fstab->recs[i].fs_type, "f2fs")) {
208 fs_mgr_free_fstab(fstab);
[all...]
/system/core/init/
H A Dueventd.cpp33 #include <fstab/fstab.h>
H A Dbuiltins.cpp421 * Call fs_mgr_mount_all() to mount the given fstab
452 struct fstab* fstab = fs_mgr_read_fstab(fstabfile); local
453 int child_ret = fs_mgr_mount_all(fstab, mount_mode);
454 fs_mgr_free_fstab(fstab);
537 /* mount_all <fstab> [ <path> ]* [--<options>]*
591 struct fstab *fstab; local
594 fstab = fs_mgr_read_fstab(args[1].c_str());
595 ret = fs_mgr_swapon_all(fstab);
712 verity_update_property(fstab_rec *fstab, const char *mount_point, int mode, int status) argument
[all...]
H A Dproperty_service.cpp729 std::unique_ptr<fstab, decltype(&fs_mgr_free_fstab)> fstab(fs_mgr_read_fstab_default(),
731 if (!fstab) {
732 PLOG(ERROR) << "unable to read default fstab";
736 fstab_rec* rec = fs_mgr_get_entry_for_mount_point(fstab.get(), RECOVERY_MOUNT_POINT);
738 LOG(ERROR) << "/recovery not specified in fstab";
H A Dinit_first_stage.cpp55 bool DoFirstStageMount(); // Mounts fstab entries read from device tree.
72 std::unique_ptr<fstab, decltype(&fs_mgr_free_fstab)> device_tree_fstab_;
122 LOG(INFO) << "Failed to read fstab from device tree";
324 // Includes the partition names of fstab records and verity_loc_device (if any).
478 // Mounts partitions specified by fstab in device tree.
486 // Firstly checks if device tree fstab entries are compatible.
487 if (!is_android_dt_value_expected("fstab/compatible", "android,fstab")) {
488 LOG(INFO) << "First stage mount skipped (missing/incompatible fstab in device tree)";

Completed in 498 milliseconds

12