Author: kib
Date: Tue Mar 19 14:50:24 2013
New Revision: 248517
URL: http://svnweb.freebsd.org/changeset/base/248517

Log:
  The geom_part provider supports unmapped bio iff the underlying
  provider does so, since geom_part never inspects the bio_data.
  
  Sponsored by: The FreeBSD Foundation
  Tested by:    pho

Modified:
  head/sys/geom/part/g_part.c

Modified: head/sys/geom/part/g_part.c
==============================================================================
--- head/sys/geom/part/g_part.c Tue Mar 19 14:49:15 2013        (r248516)
+++ head/sys/geom/part/g_part.c Tue Mar 19 14:50:24 2013        (r248517)
@@ -428,6 +428,7 @@ g_part_new_provider(struct g_geom *gp, s
        entry->gpe_pp->stripeoffset = pp->stripeoffset + entry->gpe_offset;
        if (pp->stripesize > 0)
                entry->gpe_pp->stripeoffset %= pp->stripesize;
+       entry->gpe_pp->flags |= pp->flags & G_PF_ACCEPT_UNMAPPED;
        g_error_provider(entry->gpe_pp, 0);
 }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to