FreeBSD/sys/geom/vinum/geom_vinum_subr.c
/* Walk over plexes in a volume and count how many are down. */
Walk over plexes in a volume and count how many are down.
Walk over plexes in a volume and count how many are down .
int
gv_plexdown(struct gv_volume *v)
{
	int plexdown;
	struct gv_plex *p;
	KASSERT(v != NULL, ("gv_plexdown: NULL v"));
	plexdown = 0;
	LIST_FOREACH(p, &v->plexes, plex) {
		if (p->state == GV_PLEX_DOWN)
			plexdown++;
	}
	return (plexdown);
}
int gv_plexdown ( struct gv_volume * v ) { int plexdown ; struct gv_plex * p ; KASSERT ( v != NULL , ( " " ) ) ; plexdown = 0 ; LIST_FOREACH ( p , & v -> plexes , plex ) { if ( p -> state == GV_PLEX_DOWN ) plexdown ++ ; } return ( plexdown ) ; }
Walk over plexes in a volume and count how many are down.
Walk over plexes in a volume and count how many are down .