Home
last modified time | relevance | path

Searched refs:plexes (Results 1 – 8 of 8) sorted by relevance

/dragonfly/sys/dev/raid/vinum/
HDvinumconfig.c158 for (i = 0; i < vol->plexes; i++) in my_plex()
198 if (vol->plexes == MAXPLEX) /* all plexes allocated */ in give_plex_to_volume()
202 else if ((vol->plexes > 0) /* we have other plexes */ in give_plex_to_volume()
205 vol->plex[vol->plexes] = plexno; /* this one */ in give_plex_to_volume()
206 vol->plexes++; /* add another plex */ in give_plex_to_volume()
210 for (i = 0; i < vol->plexes; i++) in give_plex_to_volume()
212 return vol->plexes - 1; /* and return its index */ in give_plex_to_volume()
1516 else if (vol->plexes + 1 > 8) /* another entry */ in config_volume()
1520 vol->plex[vol->plexes] = plexno; in config_volume()
1521 vol->plexes++; in config_volume()
[all …]
HDvinumioctl.c564 if ((vol->plexes == MAXPLEX) /* we have too many already */ in attachobject()
665 &&(vol->plexes == 1))) { /* and this is the last plex */ in detachobject()
675 for (plexno = 0; plexno < vol->plexes; plexno++) { in detachobject()
679 if (plexno < (vol->plexes - 1)) /* not the last one, compact */ in detachobject()
682 (vol->plexes - 1 - plexno) * sizeof(int)); in detachobject()
683 vol->plexes--; in detachobject()
HDvinumstate.c251 || (vol->plexes == 1)) in set_sd_state()
541 for (plexno = 0; plexno < vol->plexes; plexno++) in update_plex_state()
588 for (plexno = 0; plexno < vol->plexes; plexno++) { in update_volume_state()
595 … if (plexno == vol->plexes) /* didn't find an up plex */ in update_volume_state()
788 for (plexno = 0; plexno < vol->plexes; plexno++) { in vpstate()
HDvinumrequest.c254 if (vol->last_plex_read >= vol->plexes) /* got the the end? */ in vinumstart()
732 plexmask = ((1 << vol->plexes) - 1) /* all plexes in the volume */ in build_read_request()
734 for (plexno = 0; plexno < vol->plexes; plexno++) { in build_read_request()
778 for (plexno = 0; plexno < vol->plexes; plexno++) { in build_write_request()
HDvinumvar.h601 int plexes; /* number of plexes */ member
/dragonfly/sbin/vinum/
HDlist.c313 printf("\t\t%d plexes\n\t\tRead policy: ", vol.plexes); in vinum_lvi()
324 vol.plexes, in vinum_lvi()
365 if (vol.plexes > 0) { in vinum_lvi()
368 for (plexno = 0; plexno < vol.plexes; plexno++) { in vinum_lvi()
379 for (plexno = 0; plexno < vol.plexes; plexno++) in vinum_lvi()
381 for (plexno = 0; plexno < vol.plexes; plexno++) { /* then the subdisks */ in vinum_lvi()
HDv.c614 if (vol.plexes > 0) {
621 for (plexno = 0; plexno < vol.plexes; plexno++)
HDcommands.c807 for (plexno = 0; plexno < vol.plexes; plexno++) in reset_volume_stats()
1032 for (plexno = 0; plexno < vol.plexes; plexno++) { in vinum_attach()
1205 for (plexno = 0; plexno < vol.plexes; plexno++) { in vinum_rename_2()