FreeBSD/sys/geom/vinum/geom_vinum_init.c
/* Return a good plex from volume v. */
Return a good plex from volume v.
Return a good plex from volume v .
static struct gv_plex *
gv_find_good_plex(struct gv_volume *v)
{
	struct gv_plex *up;
	up = NULL;
	LIST_FOREACH(up, &v->plexes, in_volume) {
		if (up->state == GV_PLEX_UP)
			break;
	}
	return (up);
}
static struct gv_plex * gv_find_good_plex ( struct gv_volume * v ) { struct gv_plex * up ; up = NULL ; LIST_FOREACH ( up , & v -> plexes , in_volume ) { if ( up -> state == GV_PLEX_UP ) break ; } return ( up ) ; }
Return a good plex from volume v.
Return a good plex from volume v .
/* Find the plex that's up. */ /* Didn't find a good plex. */