Home
last modified time | relevance | path

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

/bootable/recovery/mtdutils/
Dmounts.c47 free_volume_internals(const MountedVolume *volume, int zero) in free_volume_internals() argument
49 free((char *)volume->device); in free_volume_internals()
50 free((char *)volume->mount_point); in free_volume_internals()
51 free((char *)volume->filesystem); in free_volume_internals()
52 free((char *)volume->flags); in free_volume_internals()
54 memset((void *)volume, 0, sizeof(*volume)); in free_volume_internals()
141 unmount_mounted_volume(const MountedVolume *volume) in unmount_mounted_volume() argument
147 int ret = umount(volume->mount_point); in unmount_mounted_volume()
149 free_volume_internals(volume, 1); in unmount_mounted_volume()
156 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.cpp170 int format_volume(const char* volume) { in format_volume() argument
171 Volume* v = volume_for_path(volume); in format_volume()
173 LOGE("unknown volume \"%s\"\n", volume); in format_volume()
178 LOGE("can't format_volume \"%s\"", volume); in format_volume()
181 if (strcmp(v->mount_point, volume) != 0) { in format_volume()
182 LOGE("can't give path \"%s\" to format_volume\n", volume); in format_volume()
186 if (ensure_path_unmounted(volume) != 0) { in format_volume()
236 result = make_ext4fs(v->blk_device, length, volume, sehandle); in format_volume()
Droots.h43 int format_volume(const char* volume);
Drecovery.cpp420 static bool erase_volume(const char* volume) { in erase_volume() argument
421 bool is_cache = (strcmp(volume, CACHE_ROOT) == 0); in erase_volume()
434 ensure_path_mounted(volume); in erase_volume()
473 ui->Print("Formatting %s...\n", volume); in erase_volume()
475 ensure_path_unmounted(volume); in erase_volume()
476 int result = format_volume(volume); in erase_volume()