Lines Matching refs:drive
153 * possibly reference a drive that isn't in our config
188 * We don't need the drive configuration if we're not writing the
192 LIST_FOREACH(d, &sc->drives, drive) {
224 sbuf_printf(sb, "sd name %s drive %s len %jds driveoffset "
225 "%jds", s->name, s->drive, s->size / 512,
563 * Give a subdisk to a drive, check and adjust several parameters, adjust
582 /* Check if this subdisk was already given to this drive. */
630 /* Assign drive offset, if not given. */
646 /* No drive offset given, try to calculate it. */
649 /* Add offsets and sizes from other subdisks on this drive. */
661 /* Check if we have a free slot at the given drive offset. */
685 * subdisk to the drive and adjust the freelist.
728 * This is the first subdisk on this drive, just insert it into the
752 /* Link back from the subdisk to this drive. */
922 /* Find a drive by name. */
928 LIST_FOREACH(d, &sc->drives, drive) {
936 /* Find a drive given a device. */
942 LIST_FOREACH(d, &sc->drives, drive) {
986 ("gv_is_drive_newer: empty drive list"));
989 LIST_FOREACH(d2, &sc->drives, drive) {
1025 LIST_FOREACH(d, &sc->drives, drive) {
1043 d = gv_find_drive(sc, s->drive);
1110 LIST_FOREACH_SAFE(d, &sc->drives, drive, d2) {
1115 LIST_REMOVE(d, drive);