summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2013-03-25 07:24:58 +0000
committermav <mav@FreeBSD.org>2013-03-25 07:24:58 +0000
commitcdfcce8d39f2ccae18abaa3834bcbc8b35dd92ca (patch)
tree5f6217614bb31f0cb4e6fa98461c73bbabb13d10
parenta8910d58f2dec4897798f09fa0c822067b066e37 (diff)
downloadFreeBSD-src-cdfcce8d39f2ccae18abaa3834bcbc8b35dd92ca.zip
FreeBSD-src-cdfcce8d39f2ccae18abaa3834bcbc8b35dd92ca.tar.gz
Make GEOM MULTIPATH to report unmapped bio support if underling path report
it. GEOM MULTIPATH itself never touches the data and so transparent.
-rw-r--r--sys/geom/multipath/g_multipath.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/geom/multipath/g_multipath.c b/sys/geom/multipath/g_multipath.c
index 8b63376..72cd2c5 100644
--- a/sys/geom/multipath/g_multipath.c
+++ b/sys/geom/multipath/g_multipath.c
@@ -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++;
OpenPOWER on IntegriCloud