Lines Matching refs:drive

46  * Create a new drive object, either by user request, during taste of the drive
66 /* The drive already has a consumer if it was tasted before. */
73 G_VINUM_DEBUG(0, "drive '%s' already exists", d->name);
97 G_VINUM_DEBUG(0, "create drive '%s': unable to attach",
109 * If this was just a "referenced" drive, we're almost finished, but
110 * insert this drive not on the head of the drives list, as
111 * gv_drive_is_newer() expects a "real" drive from LIST_FIRST().
117 LIST_INSERT_HEAD(&sc->drives, d, drive);
119 LIST_INSERT_AFTER(d2, d, drive);
124 * Update access counts of the new drive to those of an already
125 * existing drive.
127 LIST_FOREACH(d2, &sc->drives, drive) {
138 G_VINUM_DEBUG(0, "create drive '%s': unable to update "
174 LIST_INSERT_HEAD(&sc->drives, d, drive);
237 /* Find the drive where this subdisk should be put on. */
238 d = gv_find_drive(sc, s->drive);
241 * It's possible that the subdisk references a drive that
243 * practically empty "referenced" drive.
249 strlcpy(d->name, s->drive, sizeof(d->name));
252 G_VINUM_DEBUG(0, "create sd '%s': drive '%s' not found",
253 s->name, s->drive);
269 * First we give the subdisk to the drive, to handle autosized
316 char *drive, buf[30], *vol;
330 gctl_error(req, "drive names not given");
350 snprintf(buf, sizeof(buf), "drive%d", dcount);
351 drive = gctl_get_param(req, buf, NULL);
352 d = gv_find_drive(sc, drive);
354 gctl_error(req, "No such drive '%s'", drive);
360 strlcpy(s->drive, drive, sizeof(s->drive));
381 char *drive, buf[30], *vol;
398 gctl_error(req, "drive names not given");
435 * We just gives each even drive to plex one, and each odd to
440 snprintf(buf, sizeof(buf), "drive%d", dcount);
441 drive = gctl_get_param(req, buf, NULL);
442 d = gv_find_drive(sc, drive);
444 gctl_error(req, "No such drive '%s', aborting",
445 drive);
453 strlcpy(s->drive, drive, sizeof(s->drive));
474 char *vol, *drive, buf[30];
494 gctl_error(req, "drive names not given");
520 snprintf(buf, sizeof(buf), "drive%d", dcount);
521 drive = gctl_get_param(req, buf, NULL);
522 d = gv_find_drive(sc, drive);
524 gctl_error(req, "No such drive '%s'", drive);
530 strlcpy(s->drive, drive, sizeof(s->drive));
551 char *drive, buf[30], *vol;
566 gctl_error(req, "drive names not given");
592 snprintf(buf, sizeof(buf), "drive%d", dcount);
593 drive = gctl_get_param(req, buf, NULL);
594 d = gv_find_drive(sc, drive);
596 gctl_error(req, "No such drive '%s'", drive);
602 strlcpy(s->drive, drive, sizeof(s->drive));