Geoms without softc are geoms which are initialized, so wait for them.

This commit is contained in:
Pawel Jakub Dawidek 2004-10-06 18:47:15 +00:00
parent 69ffe299bd
commit dd12956ac7

View File

@ -2699,8 +2699,10 @@ g_mirror_can_go(void)
g_topology_lock();
LIST_FOREACH(gp, &g_mirror_class.geom, geom) {
sc = gp->softc;
if (sc == NULL)
continue;
if (sc == NULL) {
can_go = 0;
break;
}
pp = sc->sc_provider;
if (pp == NULL || pp->error != 0) {
can_go = 0;