FreeBSD/sys/geom/vinum/geom_vinum_subr.c
/* Return how many subdisks that constitute the original plex. */
Return how many subdisks that constitute the original plex.
Return how many subdisks that constitute the original plex .
int
gv_sdcount(struct gv_plex *p, int growing)
{
	struct gv_sd *s;
	int sdcount;
	sdcount = p->sdcount;
	if (growing) {
		LIST_FOREACH(s, &p->subdisks, in_plex) {
			if (s->flags & GV_SD_GROW)
				sdcount--;
		}
	}
	return (sdcount);
}
int gv_sdcount ( struct gv_plex * p , int growing ) { struct gv_sd * s ; int sdcount ; sdcount = p -> sdcount ; if ( growing ) { LIST_FOREACH ( s , & p -> subdisks , in_plex ) { if ( s -> flags & GV_SD_GROW ) sdcount -- ; } } return ( sdcount ) ; }
Return how many subdisks that constitute the original plex.
Return how many subdisks that constitute the original plex .