Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Mar 2013 07:24:58 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r248696 - head/sys/geom/multipath
Message-ID:  <201303250724.r2P7OwOR015814@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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++;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303250724.r2P7OwOR015814>