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
This commit is contained in:
Konstantin Belousov 2013-03-19 14:50:24 +00:00
parent f8c19ba466
commit db7bfaa8ce

View File

@ -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);
}