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:
phk 2002-10-24 19:20:28 +00:00
parent cfa0367849
commit 75576547f2

View File

@ -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);
}