svn commit: r248696 - head/sys/geom/multipath

Alexander Motin mav at FreeBSD.org
Mon Mar 25 07:24:58 UTC 2013


Author: mav
Date: Mon Mar 25 07:24:58 2013
New Revision: 248696
URL: http://svnweb.freebsd.org/changeset/base/248696

Log:
  Make GEOM MULTIPATH to report unmapped bio support if underling path report
  it.  GEOM MULTIPATH itself never touches the data and so transparent.

Modified:
  head/sys/geom/multipath/g_multipath.c

Modified: head/sys/geom/multipath/g_multipath.c
==============================================================================
--- head/sys/geom/multipath/g_multipath.c	Mon Mar 25 06:31:17 2013	(r248695)
+++ head/sys/geom/multipath/g_multipath.c	Mon Mar 25 07:24:58 2013	(r248696)
@@ -522,6 +522,8 @@ g_multipath_add_disk(struct g_geom *gp, 
 		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++;


More information about the svn-src-all mailing list