Don't taste the first provider, it's /dev/geom.ctl and it's not going
to taste like anything we like anyway.
This commit is contained in:
parent
cfa0367849
commit
75576547f2
@ -190,7 +190,8 @@ g_new_providerf(struct g_geom *gp, char *fmt, ...)
|
||||
pp->geom = gp;
|
||||
LIST_INSERT_HEAD(&gp->provider, pp, provider);
|
||||
g_nproviders++;
|
||||
g_post_event(EV_NEW_PROVIDER, NULL, NULL, pp, NULL);
|
||||
if (g_nproviders > 1)
|
||||
g_post_event(EV_NEW_PROVIDER, NULL, NULL, pp, NULL);
|
||||
return (pp);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user