Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Aug 2017 16:37:38 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r322319 - head/sys/geom
Message-ID:  <201708091637.v79Gbct7091518@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Wed Aug  9 16:37:37 2017
New Revision: 322319
URL: https://svnweb.freebsd.org/changeset/base/322319

Log:
  Also provide a warning for geom_fox.
  
  Differential Review: https://reviews.freebsd.org/D11935
  Requested by: jhb@
  MFC After: 3 days

Modified:
  head/sys/geom/geom_fox.c

Modified: head/sys/geom/geom_fox.c
==============================================================================
--- head/sys/geom/geom_fox.c	Wed Aug  9 16:15:24 2017	(r322318)
+++ head/sys/geom/geom_fox.c	Wed Aug  9 16:37:37 2017	(r322319)
@@ -53,6 +53,8 @@
 #define FOX_CLASS_NAME "FOX"
 #define FOX_MAGIC	"GEOM::FOX"
 
+static int g_fox_once;
+
 FEATURE(geom_fox, "GEOM FOX redundant path mitigation support");
 
 struct g_fox_softc {
@@ -438,8 +440,15 @@ printf("fox %s lock %p\n", gp->name, &sc->lock);
 		g_free(buf);
 	g_access(cp, -1, 0, 0);
 
-	if (!LIST_EMPTY(&gp->provider))
+	if (!LIST_EMPTY(&gp->provider)) {
+		if (!g_fox_once) {
+			g_fox_once = 1;
+			printf(
+			    "WARNING: geom_fox (geom %s) is deprecated, "
+			    "use gmultipath instead.\n", gp->name);
+		}
 		return (gp);
+	}
 
 	g_free(gp->softc);
 	g_detach(cp);



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