From f4673017b3a026f44bb40b06d3d3d54fe42d2b67 Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Mon, 25 Mar 2013 07:24:58 +0000 Subject: [PATCH] Make GEOM MULTIPATH to report unmapped bio support if underling path report it. GEOM MULTIPATH itself never touches the data and so transparent. --- sys/geom/multipath/g_multipath.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/geom/multipath/g_multipath.c b/sys/geom/multipath/g_multipath.c index 8b633760266..72cd2c5bb67 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++;