Geoms without softc are geoms which are initialized, so wait for them.
This commit is contained in:
parent
69ffe299bd
commit
dd12956ac7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user