From db7bfaa8ceb90f47f6d56dc98243b23b5dcf42d4 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Tue, 19 Mar 2013 14:50:24 +0000 Subject: [PATCH] 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 --- sys/geom/part/g_part.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/geom/part/g_part.c b/sys/geom/part/g_part.c index f7f6f5567ae..1583122e944 100644 --- a/sys/geom/part/g_part.c +++ b/sys/geom/part/g_part.c @@ -428,6 +428,7 @@ g_part_new_provider(struct g_geom *gp, struct g_part_table *table, 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); }