Lines Matching defs:arrays
274 int *arrays;
397 if (state->arrays[i] == state->array_ref)
448 * Create a volume that spans one or more arrays.
451 build_volume(char *volumep, int narrays, struct array_info *arrays,
507 * or RAID-60 arrays. The only nested array
526 ld->params.num_drives = arrays[0].array->num_drives;
534 ar = arrays[i].array;
555 struct array_info *arrays;
584 arrays = NULL;
648 /* Parse all the arrays. */
677 warnx("Volume spans more than %d arrays",
684 arrays = calloc(narrays, sizeof(*arrays));
685 if (arrays == NULL) {
691 error = parse_array(fd, raid_type, av[i], &arrays[i]);
701 if (arrays[i].drive_count != arrays[0].drive_count) {
702 warnx("All arrays must contain the same "
725 state.arrays = calloc(config->array_count, sizeof(int));
726 if (state.arrays == NULL) {
733 state.arrays[i] = ar->array_ref;
736 qsort(state.arrays, config->array_count, sizeof(int),
739 state.arrays = NULL;
773 /* A single volume spans multiple arrays. */
799 /* Build the arrays. */
801 build_array(fd, cfg_arrays, &arrays[i], &state, verbose);
809 &arrays[i * arrays_per_volume], raid_type, stripe_size,
831 free(state.arrays);
832 if (arrays != NULL) {
834 free(arrays[i].drives);
835 free(arrays);
988 /* Global spare backs all arrays. */
1003 * Dedicated spares only back the arrays for a
1121 "mfi%d %s: %d arrays, %d volumes, %d spares\n", mfi_unit,