Date: Tue, 4 Oct 2011 17:03:15 +0000 (UTC) From: "Lev A. Serebryakov" <lev@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r226007 - projects/geom-events/sys/geom/stripe Message-ID: <201110041703.p94H3FBi068940@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110041703.p94H3FBi068940>