HomeSort by relevance Sort by last modified time
    Searched defs:fstab (Results 1 - 18 of 18) sorted by null

  /system/update_engine/
utils_android.cc 28 // Open the appropriate fstab file and fallback to /fstab.device if
30 static struct fstab* OpenFSTab() {
32 struct fstab* fstab; local
35 string fstab_name = string("/fstab.") + propbuf;
36 fstab = fs_mgr_read_fstab(fstab_name.c_str());
37 if (fstab != nullptr)
38 return fstab;
40 fstab = fs_mgr_read_fstab("/fstab.device")
49 struct fstab* fstab; 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...]
  /system/core/adb/
set_verity_enable_state_service.cpp 36 #define FSTAB_PREFIX "/fstab."
37 struct fstab *fstab; variable in typeref:struct:fstab
116 fstab = fs_mgr_read_fstab(fstab_filename);
117 if (!fstab) {
123 for (i = 0; i < fstab->num_entries; i++) {
124 if(fs_mgr_is_verified(&fstab->recs[i])) {
125 if (!set_verity_enabled_state(fd, fstab->recs[i].blk_device,
126 fstab->recs[i].mount_point,
remount_service.cpp 54 // Returns the device used to mount a directory in the fstab.
59 std::string fstab_filename = std::string("/fstab.") + propbuf;
60 struct fstab* fstab = fs_mgr_read_fstab(fstab_filename.c_str()); local
61 struct fstab_rec* rec = fs_mgr_get_entry_for_mount_point(fstab, dir);
63 fs_mgr_free_fstab(fstab);
67 // The proc entry for / is full of lies, so check fstab instead.
  /system/core/fs_mgr/
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_fstab.c 244 struct fstab *fs_mgr_read_fstab(const char *fstab_path)
253 struct fstab *fstab = NULL; local
282 ERROR("No entries found in fstab\n");
286 /* Allocate and init the fstab structure */
287 fstab = calloc(1, sizeof(struct fstab));
288 fstab->num_entries = entries;
289 fstab->fstab_filename = strdup(fstab_path);
290 fstab->recs = calloc(fstab->num_entries, sizeof(struct fstab_rec))
    [all...]
fs_mgr_verity.cpp 47 #define FSTAB_PREFIX "/fstab."
617 static int compare_last_signature(struct fstab_rec *fstab, int *match)
630 if (fec_open(&f, fstab->blk_device, O_RDONLY, FEC_VERITY_DISABLE,
632 ERROR("Failed to open '%s' (%s)\n", fstab->blk_device,
639 ERROR("Failed to get verity metadata '%s' (%s)\n", fstab->blk_device,
647 basename(fstab->mount_point)) >= (int)sizeof(tag)) {
648 ERROR("Metadata tag name too long for %s\n", fstab->mount_point);
652 if (metadata_find(fstab->verity_loc, tag, SHA256_DIGEST_SIZE,
657 fd = TEMP_FAILURE_RETRY(open(fstab->verity_loc, O_RDWR | O_SYNC | O_CLOEXEC));
660 ERROR("Failed to open %s: %s\n", fstab->verity_loc, strerror(errno))
750 struct fstab *fstab = NULL; local
805 struct fstab *fstab = NULL; local
    [all...]
  /bootable/recovery/bootloader_message/
bootloader_message.cpp 32 static struct fstab* read_fstab(std::string* err) {
33 // The fstab path is always "/fstab.${ro.hardware}".
34 std::string fstab_path = "/fstab.";
41 struct fstab* fstab = fs_mgr_read_fstab(fstab_path.c_str()); local
42 if (fstab == nullptr) {
45 return fstab;
49 struct fstab* fstab = read_fstab(err) local
    [all...]
  /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)
44 struct fstab *fstab; local
47 snprintf(fstab_name, sizeof(fstab_name), "/fstab.%s", propbuf);
48 fstab = fs_mgr_read_fstab(fstab_name);
49 if (fstab != NULL)
50 return fstab;
52 fstab = fs_mgr_read_fstab("/fstab.device")
60 struct fstab *fstab; local
    [all...]
  /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...]
  /bootable/recovery/
roots.cpp 36 static struct fstab *fstab = NULL; variable in typeref:struct:fstab
45 fstab = fs_mgr_read_fstab("/etc/recovery.fstab");
46 if (!fstab) {
47 LOGE("failed to read /etc/recovery.fstab\n");
51 ret = fs_mgr_add_entry(fstab, "/tmp", "ramdisk", "ramdisk");
53 LOGE("failed to add /tmp entry to fstab\n");
54 fs_mgr_free_fstab(fstab);
55 fstab = NULL
    [all...]
  /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
72 typedef void (*fs_mgr_verity_state_callback)(struct fstab_rec *fstab,
75 struct fstab *fs_mgr_read_fstab(const char *fstab_path);
76 void fs_mgr_free_fstab(struct fstab *fstab);
85 int fs_mgr_mount_all(struct fstab *fstab);
90 int fs_mgr_do_mount(struct fstab *fstab, char *n_name, char *n_blk_device
    [all...]
  /bootable/recovery/uncrypt/
uncrypt.cpp 139 static struct fstab* fstab = nullptr; variable in typeref:struct:fstab
165 static struct fstab* read_fstab() {
166 fstab = NULL;
168 // The fstab path is always "/fstab.${ro.hardware}".
169 char fstab_path[PATH_MAX+1] = "/fstab.";
175 fstab = fs_mgr_read_fstab(fstab_path);
176 if (!fstab) {
181 return fstab;
    [all...]
  /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...]
  /external/e2fsprogs/misc/
fsck.c 66 #define _PATH_MNTTAB "/etc/fstab"
331 * Load the filesystem database from /etc/fstab
369 "WARNING: Your /etc/fstab does not contain the fsck passno\n"
371 " should fix your /etc/fstab file as soon as you can.\n\n"), stderr);
379 /* Lookup filesys in /etc/fstab and return the corresponding entry. */
696 * use that type regardless of what is specified in /etc/fstab.
699 * specified in /etc/fstab, or DEFAULT_FSTYPE.
883 _("%s: skipping bad line in /etc/fstab: bind mount with nonzero fsck pass number\n"),
956 /* Check all file systems, using the /etc/fstab table. */
1257 const char *fstab; local
    [all...]
  /system/core/init/
builtins.cpp 502 /* mount_all <fstab> [ <path> ]*
512 struct fstab *fstab; local
538 fstab = fs_mgr_read_fstab(fstabfile);
539 child_ret = fs_mgr_mount_all(fstab);
540 fs_mgr_free_fstab(fstab);
589 struct fstab *fstab; local
592 fstab = fs_mgr_read_fstab(args[1].c_str());
593 ret = fs_mgr_swapon_all(fstab);
    [all...]

Completed in 5001 milliseconds