Lines Matching defs:drives
348 struct drive_info *drives;
351 /* Parse a comma-separated list of drives for a volume. */
373 /* Validate the number of drives for this volume. */
377 warnx("RAID0 requires at least 2 drives in each "
384 warnx("RAID1 requires exactly 2 drives in each "
391 warnx("RAID1E requires at least 3 drives in each "
399 info->drives = calloc(count, sizeof(struct drive_info));
401 for (dinfo = info->drives; (cp = strsep(&volume_str, ",")) != NULL;
440 for (i = 0, dinfo = info->drives; i < info->drive_count;
477 /* Search drives first. */
482 if (state->list->drives[i]->PhysDiskID == state->target_id)
494 /* Create a volume and populate it with drives. */
542 MinLBA = info->drives[0].info->MaxLBA;
544 if (info->drives[i].info->MaxLBA < MinLBA)
545 MinLBA = info->drives[i].info->MaxLBA;
589 /* Populate drives. */
590 for (i = 0, dinfo = info->drives, rdisk = vol->PhysDisk;