/freebsd-11-stable/sys/geom/vinum/ |
H A D | geom_vinum_subr.c | 221 LIST_FOREACH(s, &sc->subdisks, sd) { 245 s = LIST_FIRST(&p->subdisks); 249 LIST_FOREACH(s, &p->subdisks, in_plex) { 285 s2 = LIST_FIRST(&p->subdisks); 300 /* Then take off extra if other subdisks are smaller. */ 314 /* Adjust other subdisks. */ 315 LIST_FOREACH(s2, &p->subdisks, in_plex) { 337 LIST_FOREACH(s2, &p->subdisks, in_plex) { 348 /* There are no subdisks for this plex yet, just insert it. */ 349 if (LIST_EMPTY(&p->subdisks)) { [all...] |
H A D | geom_vinum_init.c | 116 LIST_FOREACH(s, &p->subdisks, in_plex) { 152 LIST_FOREACH(s, &p->subdisks, in_plex) { 276 * Make sure that all subdisks have consumers. We won't allow a rebuild 279 LIST_FOREACH(s, &p->subdisks, in_plex) { 330 LIST_FOREACH(s, &p->subdisks, in_plex) { 334 s = LIST_FIRST(&p->subdisks); 336 G_VINUM_DEBUG(0, "error growing plex without subdisks"); 360 LIST_FOREACH(s, &p->subdisks, in_plex) {
|
H A D | geom_vinum_rm.c | 96 * If this plex has subdisks, we want a recursive 99 if (!LIST_EMPTY(&p->subdisks) && 102 "subdisks - need recursive removal", 139 /* A drive with subdisks needs a recursive removal. */ 140 /* if (!LIST_EMPTY(&d->subdisks) && 142 gctl_error(req, "drive '%s' still has subdisks" 183 LIST_FOREACH_SAFE(s, &sc->subdisks, sd, s2) 248 /* Remove the subdisks our plex has. */ 249 LIST_FOREACH_SAFE(s, &p->subdisks, in_plex, s2) 339 /* Remove all associated subdisks, plexe [all...] |
H A D | geom_vinum_raid5.c | 185 if (p == NULL || LIST_EMPTY(&p->subdisks)) 193 LIST_FOREACH(s, &p->subdisks, in_plex) { 212 /* Read all subdisks. */ 213 LIST_FOREACH(s, &p->subdisks, in_plex) { 217 /* Skip growing subdisks. */ 262 if (p == NULL || LIST_EMPTY(&p->subdisks)) 269 LIST_FOREACH(s, &p->subdisks, in_plex) { 306 /* Read all subdisks. */ 307 LIST_FOREACH(s, &p->subdisks, in_plex) { 312 /* Skip growing subdisks [all...] |
H A D | geom_vinum_move.c | 86 gctl_error(req, "you can only move subdisks; " 176 LIST_FOREACH_SAFE(s, &p->subdisks, in_plex, s2) { 182 LIST_INSERT_HEAD(&sc->subdisks, newsd, sd);
|
H A D | geom_vinum_var.h | 229 LIST_HEAD(,gv_sd) subdisks; /* All subdisks. */ member in struct:gv_softc 255 int sdcount; /* Number of subdisks. */ 270 LIST_HEAD(,gv_sd) subdisks; /* Subdisks on this drive. */ member in struct:gv_drive 335 int sddetached; /* Number of detached subdisks. */ 336 int sdcount; /* Number of subdisks in this plex. */ 337 int sddown; /* Number of subdisks that are down. */ 349 LIST_HEAD(,gv_sd) subdisks; /* List of attached subdisks. */ member in struct:gv_plex
|
H A D | geom_vinum_state.c | 142 LIST_FOREACH(s, &d->subdisks, from_drive) 423 /* First, check the state of our subdisks. */ 426 /* If all subdisks are up, our plex can be up, too. */ 430 /* One or more of our subdisks are down. */ 438 /* Some of our subdisks are initializing. */ 450 LIST_FOREACH(s, &p->subdisks, in_plex) { 499 /* Return a state map for the subdisks of a plex. */ 509 p->sddown = 0; /* No subdisks down yet. */ 511 LIST_FOREACH(s, &p->subdisks, in_plex) {
|
H A D | geom_vinum_rename.c | 139 LIST_FOREACH(s, &d->subdisks, from_drive) 173 /* Fix up references and potentially rename subdisks. */ 174 LIST_FOREACH(s, &p->subdisks, in_plex) {
|
H A D | geom_vinum_list.c | 187 /* List subdisks. */ 342 LIST_FOREACH(s, &p->subdisks, in_plex) { 357 LIST_FOREACH(s, &p->subdisks, in_plex) 362 /* List one or more subdisks. */ 373 LIST_FOREACH(s, &sc->subdisks, sd) 380 LIST_FOREACH(s, &sc->subdisks, sd) 498 LIST_FOREACH(s, &d->subdisks, from_drive)
|
H A D | geom_vinum_plex.c | 137 * Find the subdisk where this request starts. The subdisks in 141 LIST_FOREACH(s, &p->subdisks, in_plex) { 164 /* Take growing subdisks into account when calculating. */ 210 if (p == NULL || LIST_EMPTY(&p->subdisks)) 228 LIST_FOREACH(s, &p->subdisks, in_plex) { 637 LIST_FOREACH(s, &to->subdisks, in_plex) 741 s = LIST_FIRST(&p->subdisks); 747 LIST_FOREACH(s, &p->subdisks, in_plex) { 1040 /* Try to up all subdisks. */ 1041 LIST_FOREACH(s, &p->subdisks, in_ple [all...] |
H A D | geom_vinum.c | 183 LIST_INIT(&sc->subdisks); 314 int error, i, *drives, *flags, *plexes, *subdisks, *volumes; local 324 subdisks = gctl_get_paraml(req, "subdisks", sizeof(*subdisks)); 326 if (volumes == NULL || plexes == NULL || subdisks == NULL || 421 for (i = 0; i < *subdisks; i++) {
|
H A D | geom_vinum_create.c | 152 LIST_INIT(&d->subdisks); 217 LIST_INIT(&p->subdisks); 300 LIST_INSERT_HEAD(&sc->subdisks, s, sd); 518 /* Create subdisks on drives. */ 590 /* Create subdisks on drives. */
|
H A D | geom_vinum_events.c | 258 LIST_FOREACH_SAFE(s, &d->subdisks, from_drive, s2) {
|
/freebsd-11-stable/sbin/gvinum/ |
H A D | gvinum.c | 185 int sd_in_plex, status, subdisks, tokens, undeffd, volumes; local 244 drives = volumes = plexes = subdisks = 0; 363 snprintf(buf1, sizeof(buf1), "sd%d", subdisks); 365 subdisks++; 395 if (!errors && (volumes || plexes || subdisks || drives)) { 398 gctl_ro_param(req, "subdisks", sizeof(int), &subdisks); 427 int drives, i, flags, volumes, subdisks, plexes; local 430 flags = plexes = subdisks = volumes = 0; 452 gctl_ro_param(req, "subdisks", sizeo 1272 int drives, volumes, plexes, subdisks, flags; local [all...] |
/freebsd-11-stable/sys/geom/raid/ |
H A D | md_promise.c | 339 int error, i, subdisks; local 343 subdisks = 0; 347 (63 - subdisks * PROMISE_META_OFFSET), 352 return (subdisks); 359 if (subdisks == 0) 363 return (subdisks); 375 return (subdisks); 381 return (subdisks); 388 return (subdisks); 414 subdisks 1099 int i, j, result, len, subdisks; local [all...] |