diff options
author | mav <mav@FreeBSD.org> | 2013-03-25 07:24:58 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2013-03-25 07:24:58 +0000 |
commit | cdfcce8d39f2ccae18abaa3834bcbc8b35dd92ca (patch) | |
tree | 5f6217614bb31f0cb4e6fa98461c73bbabb13d10 /sys/geom | |
parent | a8910d58f2dec4897798f09fa0c822067b066e37 (diff) | |
download | FreeBSD-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.
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/multipath/g_multipath.c | 2 |
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++; |