Home
last modified time | relevance | path

Searched refs:volume (Results 1 – 5 of 5) sorted by relevance

/bootable/recovery/mtdutils/
Dmounts.c46 free_volume_internals(const MountedVolume *volume, int zero) in free_volume_internals() argument
48 free((char *)volume->device); in free_volume_internals()
49 free((char *)volume->mount_point); in free_volume_internals()
50 free((char *)volume->filesystem); in free_volume_internals()
51 free((char *)volume->flags); in free_volume_internals()
53 memset((void *)volume, 0, sizeof(*volume)); in free_volume_internals()
202 unmount_mounted_volume(const MountedVolume *volume) in unmount_mounted_volume() argument
208 int ret = umount(volume->mount_point); in unmount_mounted_volume()
210 free_volume_internals(volume, 1); in unmount_mounted_volume()
217 remount_read_only(const MountedVolume* volume) in remount_read_only() argument
[all …]
Dmounts.h33 int unmount_mounted_volume(const MountedVolume *volume);
35 int remount_read_only(const MountedVolume* volume);
/bootable/recovery/
Droots.cpp36 static int parse_options(char* options, Volume* volume) { in parse_options() argument
42 volume->length = strtoll(option+7, NULL, 10); in parse_options()
229 int format_volume(const char* volume) { in format_volume() argument
230 Volume* v = volume_for_path(volume); in format_volume()
232 LOGE("unknown volume \"%s\"\n", volume); in format_volume()
237 LOGE("can't format_volume \"%s\"", volume); in format_volume()
240 if (strcmp(v->mount_point, volume) != 0) { in format_volume()
241 LOGE("can't give path \"%s\" to format_volume\n", volume); in format_volume()
245 if (ensure_path_unmounted(volume) != 0) { in format_volume()
274 int result = make_ext4fs(v->device, v->length, volume, sehandle); in format_volume()
Droots.h43 int format_volume(const char* volume);
Drecovery.cpp317 erase_volume(const char *volume) { in erase_volume() argument
320 ui->Print("Formatting %s...\n", volume); in erase_volume()
322 ensure_path_unmounted(volume); in erase_volume()
324 if (strcmp(volume, "/cache") == 0) { in erase_volume()
331 return format_volume(volume); in erase_volume()