Searched refs:mount_point (Results 1 – 7 of 7) sorted by relevance
/bootable/recovery/mtdutils/ |
D | mounts.c | 28 const char *mount_point; member 49 free((char *)volume->mount_point); in free_volume_internals() 117 char mount_point[64]; in scan_mounted_volumes() local 125 device, mount_point, filesystem, flags); in scan_mounted_volumes() 129 mount_point[sizeof(mount_point)-1] = '\0'; in scan_mounted_volumes() 136 v->mount_point = strdup(mount_point); in scan_mounted_volumes() 183 find_mounted_volume_by_mount_point(const char *mount_point) in find_mounted_volume_by_mount_point() argument 191 if (v->mount_point != NULL) { in find_mounted_volume_by_mount_point() 192 if (strcmp(v->mount_point, mount_point) == 0) { in find_mounted_volume_by_mount_point() 208 int ret = umount(volume->mount_point); in unmount_mounted_volume() [all …]
|
D | mounts.h | 31 find_mounted_volume_by_mount_point(const char *mount_point);
|
D | mtdutils.c | 193 mtd_mount_partition(const MtdPartition *partition, const char *mount_point, in mtd_mount_partition() argument 202 rv = mount(devname, mount_point, filesystem, flags, NULL); in mtd_mount_partition() 205 rv = mount(devname, mount_point, filesystem, flags | MS_RDONLY, 0); in mtd_mount_partition() 208 devname, mount_point, strerror(errno)); in mtd_mount_partition() 210 printf("Mount %s on %s read-only\n", devname, mount_point); in mtd_mount_partition() 219 rv = stat(mount_point, &st); in mtd_mount_partition() 225 printf("Fixing execute permissions for %s\n", mount_point); in mtd_mount_partition() 226 rv = chmod(mount_point, new_mode); in mtd_mount_partition() 229 mount_point, strerror(errno)); in mtd_mount_partition()
|
D | mtdutils.h | 35 int mtd_mount_partition(const MtdPartition *partition, const char *mount_point,
|
/bootable/recovery/ |
D | roots.cpp | 56 device_volumes[0].mount_point = "/tmp"; in load_volume_table() 77 char* mount_point = strtok(buffer+i, " \t\n"); in load_volume_table() local 93 if (mount_point && fs_type && device) { in load_volume_table() 98 device_volumes[num_volumes].mount_point = strdup(mount_point); in load_volume_table() 122 printf(" %d %s %s %s %s %lld\n", i, v->mount_point, v->fs_type, in load_volume_table() 132 int len = strlen(v->mount_point); in volume_for_path() 133 if (strncmp(path, v->mount_point, len) == 0 && in volume_for_path() 160 find_mounted_volume_by_mount_point(v->mount_point); in ensure_path_mounted() 166 mkdir(v->mount_point, 0755); // in case it doesn't already exist in ensure_path_mounted() 175 v->device, v->mount_point); in ensure_path_mounted() [all …]
|
D | common.h | 43 const char* mount_point; // eg. "/cache". must live in the root directory. member
|
/bootable/recovery/updater/ |
D | install.c | 57 char* mount_point; in MountFn() local 59 &location, &mount_point) < 0) { in MountFn() 76 if (strlen(mount_point) == 0) { in MountFn() 85 selabel_lookup(sehandle, &secontext, mount_point, 0755); in MountFn() 90 mkdir(mount_point, 0755); in MountFn() 109 if (mtd_mount_partition(mtd, mount_point, fs_type, 0 /* rw */) != 0) { in MountFn() 115 result = mount_point; in MountFn() 117 if (mount(location, mount_point, fs_type, in MountFn() 120 name, location, mount_point, strerror(errno)); in MountFn() 123 result = mount_point; in MountFn() [all …]
|