Lines Matching defs:drives

110 	 * insert this drive not on the head of the drives list, as
115 d2 = LIST_FIRST(&sc->drives);
117 LIST_INSERT_HEAD(&sc->drives, d, drive);
127 LIST_FOREACH(d2, &sc->drives, drive) {
174 LIST_INSERT_HEAD(&sc->drives, d, drive);
306 * Create a concatenated volume from specified drives or drivegroups.
317 int *drives, dcount;
327 drives = gctl_get_paraml(req, "drives", sizeof(*drives));
329 if (drives == NULL) {
349 for (dcount = 0; dcount < *drives; dcount++) {
371 * Create a mirrored volume from specified drives or drivegroups.
382 int *drives, *flags, dcount, pcount, scount;
395 drives = gctl_get_paraml(req, "drives", sizeof(*drives));
397 if (drives == NULL) {
402 /* We must have an even number of drives. */
403 if (*drives % 2 != 0) {
405 "of drives");
408 if (*flags & GV_FLAG_S && *drives < 4) {
409 gctl_error(req, "must have at least 4 drives for striped plex");
439 for (dcount = pcount; dcount < *drives; dcount += 2) {
473 int *drives, *flags, dcount;
485 drives = gctl_get_paraml(req, "drives", sizeof(*drives));
493 if (drives == NULL) {
498 /* We must have at least three drives. */
499 if (*drives < 3) {
500 gctl_error(req, "must have at least three drives for this "
518 /* Create subdisks on drives. */
519 for (dcount = 0; dcount < *drives; dcount++) {
541 * Create a striped volume from specified drives or drivegroups.
552 int *drives, *flags, dcount, pcount;
563 drives = gctl_get_paraml(req, "drives", sizeof(*drives));
565 if (drives == NULL) {
570 /* We must have at least two drives. */
571 if (*drives < 2) {
572 gctl_error(req, "must have at least 2 drives");
590 /* Create subdisks on drives. */
591 for (dcount = 0; dcount < *drives; dcount++) {