Searched refs:plex (Results 1 - 10 of 10) sorted by relevance

/freebsd-12-stable/sys/geom/vinum/
H A Dgeom_vinum_move.c138 /* XXX: Does it have to be part of a plex? */
139 p = gv_find_plex(sc, cursd->plex);
141 G_VINUM_DEBUG(0, "subdisk '%s' is not part of a plex",
166 strlcpy(newsd->plex, cursd->plex, sizeof(newsd->plex));
185 /* Update volume size of plex. */
H A Dgeom_vinum_create.c203 /* Find the volume this plex should be attached to. */
206 G_VINUM_DEBUG(0, "create plex '%s': volume '%s' not found",
221 LIST_INSERT_HEAD(&sc->plexes, p, plex);
261 /* Find the plex where this subdisk belongs to. */
262 p = gv_find_plex(sc, s->plex);
264 G_VINUM_DEBUG(0, "create sd '%s': plex '%s' not found",
265 s->name, s->plex);
280 * Then, we give the subdisk to the plex; we check if the
284 G_VINUM_DEBUG(0, "unable to give sd '%s' to plex '%s'",
292 * the attached plex eithe
[all...]
H A Dgeom_vinum_subr.c107 } else if (!strcmp(token[0], "plex")) {
110 G_VINUM_DEBUG(0, "config parse failed plex");
119 G_VINUM_DEBUG(2, "newer plex found!");
209 LIST_FOREACH(p, &sc->plexes, plex) {
212 sbuf_printf(sb, "plex name %s org %s ", p->name,
230 sbuf_printf(sb, " plex %s plexoffset %jds", s->plex,
269 LIST_FOREACH(p, &v->plexes, plex) {
282 /* If this subdisk was already given to this plex, do nothing. */
295 "multiple of plex stripesiz
[all...]
H A Dgeom_vinum_share.c265 /* Translate from a string to a plex state. */
281 /* Translate from a plex state to a string. */
301 /* Translate from a string to a plex organization. */
337 /* Translate from a plex organization to a string. */
529 /* Get a new plex object. */
633 } else if (!strcmp(token[j], "plex")) {
639 strlcpy(s->plex, token[j], sizeof(s->plex));
H A Dgeom_vinum_rm.c98 * If this plex has subdisks, we want a recursive
103 gctl_error(req, "plex '%s' has attached "
109 /* Don't allow removal of the only plex of a volume. */
111 gctl_error(req, "plex '%s' is still attached "
122 /* Don't allow removal if attached to a plex. */
125 " to plex '%s'", s->name, s->plex_sc->name);
179 LIST_FOREACH_SAFE(p, &sc->plexes, plex, p2) {
189 LIST_FOREACH_SAFE(p, &sc->plexes, plex, p2)
233 /* Remove a plex. */
250 /* Remove the subdisks our plex ha
[all...]
H A Dgeom_vinum_rename.c91 gctl_error(req, "unknown plex '%s'", object);
158 G_VINUM_DEBUG(1, "plex name '%s' already in use", newname);
163 * Locate the plex number part of the plex names.
168 G_VINUM_DEBUG(0, "proposed plex name '%s' is not a valid plex "
177 strlcpy(s->plex, p->name, sizeof(s->plex));
H A Dgeom_vinum_var.h81 #define GV_MAXPLEXNAME 64 /* Maximum length of a plex name. */
138 #define GV_ERR_PLEXORG (-14) /* Invalid plex organization. */
283 off_t plex_offset; /* Offset in the associated plex. */
300 #define GV_SD_GROW 0x08 /* Subdisk is added to striped plex. */
303 char plex[GV_MAXPLEXNAME]; /* Name of associated plex. */ member in struct:gv_sd
306 struct gv_plex *plex_sc; /* Pointer to associated plex. */
309 LIST_ENTRY(gv_sd) in_plex; /* Subdisk list of associated plex. */
315 /* softc for a plex. */
317 char name[GV_MAXPLEXNAME]; /* The name of the plex
353 LIST_ENTRY(gv_plex) plex; /* Entry in the vinum config. */ member in struct:gv_plex
[all...]
H A Dgeom_vinum.c261 gctl_error(req, "no such plex to attach to");
399 /* ... then plex definitions ... */
402 snprintf(buf, sizeof(buf), "plex%d", i);
405 gctl_error(req, "no plex definition given");
412 gctl_error(req, "plex '%s' already exists", p2->name);
536 char *plex; local
538 plex = gctl_get_param(req, "plex", NULL);
539 if (plex == NULL) {
540 gctl_error(req, "no plex give
[all...]
H A Dgeom_vinum_list.c178 gctl_error(req, "'%s' is not a plex",
285 LIST_FOREACH(p, &sc->plexes, plex)
288 sbuf_printf(sb, "%d plex%s:\n", i, i == 1 ? "" : "es");
292 LIST_FOREACH(p, &sc->plexes, plex)
297 /* List a single plex. */
411 s->plex, (intmax_t)s->plex_offset,
/freebsd-12-stable/sbin/gvinum/
H A Dgvinum.c136 /* Attach a plex to a volume or a subdisk to a plex. */
148 warnx("usage:\tattach <subdisk> <plex> [rename] "
150 "\tattach <plex> <volume> [rename]");
189 char plex[GV_MAXPLEXNAME], volume[GV_MAXVOLNAME]; local
246 plex[0] = '\0';
284 /* Reset plex count for this volume. */
288 * Set default volume name for following plex
298 } else if (!strcmp(token[0], "plex")) {
301 warnx("line %d: invalid plex definitio
[all...]

Completed in 108 milliseconds