diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-10-24 19:20:28 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-10-24 19:20:28 +0000 |
| commit | d3eaf409666421627b8bf441c6093fa51f263d19 (patch) | |
| tree | cc3c4c33a646de2d1a91ae940afa13f7bd85cbc4 /sys | |
| parent | 0f8e01f11710dacab7d97de4cf101abc67ac7d04 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/geom/geom_subr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c index 3cea6b9df9629..cd431832d7a35 100644 --- a/sys/geom/geom_subr.c +++ b/sys/geom/geom_subr.c @@ -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); } |
