svn commit: r201579 - stable/8/sys/geom/stripe

Alexander Motin mav at FreeBSD.org
Tue Jan 5 13:46:39 UTC 2010


Author: mav
Date: Tue Jan  5 13:46:39 2010
New Revision: 201579
URL: http://svn.freebsd.org/changeset/base/201579

Log:
  MFC r200933:
  Make geom_stripe report it's stripe size to upper layers.

Modified:
  stable/8/sys/geom/stripe/g_stripe.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/geom/stripe/g_stripe.c
==============================================================================
--- stable/8/sys/geom/stripe/g_stripe.c	Tue Jan  5 13:25:12 2010	(r201578)
+++ stable/8/sys/geom/stripe/g_stripe.c	Tue Jan  5 13:46:39 2010	(r201579)
@@ -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-stable mailing list