svn commit: r200933 - head/sys/geom/stripe
Alexander Motin
mav at FreeBSD.org
Thu Dec 24 10:43:44 UTC 2009
Author: mav
Date: Thu Dec 24 10:43:44 2009
New Revision: 200933
URL: http://svn.freebsd.org/changeset/base/200933
Log:
Make geom_stripe report it's stripe size to upper layers.
Modified:
head/sys/geom/stripe/g_stripe.c
Modified: head/sys/geom/stripe/g_stripe.c
==============================================================================
--- head/sys/geom/stripe/g_stripe.c Thu Dec 24 04:50:18 2009 (r200932)
+++ head/sys/geom/stripe/g_stripe.c Thu Dec 24 10:43:44 2009 (r200933)
@@ -675,6 +675,8 @@ g_stripe_check_and_run(struct g_stripe_s
}
sc->sc_provider->sectorsize = sectorsize;
sc->sc_provider->mediasize = mediasize * sc->sc_ndisks;
+ sc->sc_provider->stripesize = sc->sc_stripesize;
+ sc->sc_provider->stripeoffset = 0;
g_error_provider(sc->sc_provider, 0);
G_STRIPE_DEBUG(0, "Device %s activated.", sc->sc_name);
More information about the svn-src-all
mailing list