svn commit: r226007 - projects/geom-events/sys/geom/stripe
Lev A. Serebryakov
lev at FreeBSD.org
Tue Oct 4 17:03:15 UTC 2011
Author: lev (ports committer)
Date: Tue Oct 4 17:03:14 2011
New Revision: 226007
URL: http://svn.freebsd.org/changeset/base/226007
Log:
Add g_notify_*() calls to geom_stripe
Modified:
projects/geom-events/sys/geom/stripe/g_stripe.c
Modified: projects/geom-events/sys/geom/stripe/g_stripe.c
==============================================================================
--- projects/geom-events/sys/geom/stripe/g_stripe.c Tue Oct 4 17:03:01 2011 (r226006)
+++ projects/geom-events/sys/geom/stripe/g_stripe.c Tue Oct 4 17:03:14 2011 (r226007)
@@ -196,10 +196,17 @@ g_stripe_orphan(struct g_consumer *cp)
if (sc == NULL)
return;
+ g_notify_disconnect(sc->sc_provider, cp,
+ ((g_stripe_nvalid(sc) > 1)?
+ G_NOTIFY_DISCONNECT_ALIVE:
+ G_NOTIFY_DISCONNECT_DEAD));
+
g_stripe_remove_disk(cp);
/* If there are no valid disks anymore, remove device. */
- if (g_stripe_nvalid(sc) == 0)
+ if (g_stripe_nvalid(sc) == 0) {
+ g_notify_destroyed(sc->sc_provider);
g_stripe_destroy(sc, 1);
+ }
}
static int
More information about the svn-src-projects
mailing list