Home | History | Annotate | Download | only in recovery

Lines Matching refs:Volume

32 static Volume* device_volumes = NULL;
34 static int parse_options(char* options, Volume* volume) {
40 volume->length = strtoll(option+7, NULL, 10);
51 device_volumes = malloc(alloc * sizeof(Volume));
94 device_volumes = realloc(device_volumes, alloc*sizeof(Volume));
119 Volume* v = &device_volumes[i];
126 Volume* volume_for_path(const char* path) {
129 Volume* v = device_volumes+i;
140 Volume* v = volume_for_path(path);
142 LOGE("unknown volume for path [%s]\n", path);
160 // volume is already mounted
200 Volume* v = volume_for_path(path);
202 LOGE("unknown volume for path [%s]\n", path);
220 // volume is already unmounted
227 int format_volume(const char* volume) {
228 Volume* v = volume_for_path(volume);
230 LOGE("unknown volume \"%s\"\n", volume);
235 LOGE("can't format_volume \"%s\"", volume);
238 if (strcmp(v->mount_point, volume) != 0) {
239 LOGE("can't give path \"%s\" to format_volume\n", volume);
243 if (ensure_path_unmounted(volume) != 0) {