Lines Matching refs:arrays
245 int *arrays; member
368 if (state->arrays[i] == state->array_ref) in find_next_array()
422 build_volume(char *volumep, int narrays, struct array_info *arrays, in build_volume() argument
497 ld->params.num_drives = arrays[0].array->num_drives; in build_volume()
505 ar = arrays[i].array; in build_volume()
526 struct array_info *arrays; in create_volume() local
555 arrays = NULL; in create_volume()
661 arrays = calloc(narrays, sizeof(*arrays)); in create_volume()
662 if (arrays == NULL) { in create_volume()
668 error = parse_array(fd, raid_type, av[i], &arrays[i]); in create_volume()
678 if (arrays[i].drive_count != arrays[0].drive_count) { in create_volume()
702 state.arrays = calloc(config->array_count, sizeof(int)); in create_volume()
703 if (state.arrays == NULL) { in create_volume()
710 state.arrays[i] = ar->array_ref; in create_volume()
713 qsort(state.arrays, config->array_count, sizeof(int), in create_volume()
716 state.arrays = NULL; in create_volume()
778 build_array(fd, cfg_arrays, &arrays[i], &state, verbose); in create_volume()
786 &arrays[i * arrays_per_volume], raid_type, stripe_size, in create_volume()
808 free(state.arrays); in create_volume()
809 if (arrays != NULL) { in create_volume()
811 free(arrays[i].drives); in create_volume()
812 free(arrays); in create_volume()