Make GEOM MULTIPATH to report unmapped bio support if underling path report

it.  GEOM MULTIPATH itself never touches the data and so transparent.
This commit is contained in:
Alexander Motin 2013-03-25 07:24:58 +00:00
parent 6d14d0d010
commit f4673017b3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=248696

View File

@ -522,6 +522,8 @@ g_multipath_add_disk(struct g_geom *gp, struct g_provider *pp)
sc->sc_pp->stripesize = pp->stripesize;
sc->sc_pp->stripeoffset = pp->stripeoffset;
}
if (sc->sc_pp != NULL)
sc->sc_pp->flags |= pp->flags & G_PF_ACCEPT_UNMAPPED;
mtx_lock(&sc->sc_mtx);
cp->index = 0;
sc->sc_ndisks++;