Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jan 2017 05:59:27 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r312862 - stable/10/sys/geom/multipath
Message-ID:  <201701270559.v0R5xRH9021080@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Fri Jan 27 05:59:26 2017
New Revision: 312862
URL: https://svnweb.freebsd.org/changeset/base/312862

Log:
  MFC r312533: Report disk addition errors on `add` or `create` subcommand.

Modified:
  stable/10/sys/geom/multipath/g_multipath.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/geom/multipath/g_multipath.c
==============================================================================
--- stable/10/sys/geom/multipath/g_multipath.c	Fri Jan 27 05:58:53 2017	(r312861)
+++ stable/10/sys/geom/multipath/g_multipath.c	Fri Jan 27 05:59:26 2017	(r312862)
@@ -923,6 +923,7 @@ g_multipath_ctl_add_name(struct gctl_req
 	struct g_provider *pp;
 	const char *mpname;
 	static const char devpf[6] = "/dev/";
+	int error;
 
 	g_topology_assert();
 
@@ -972,10 +973,9 @@ g_multipath_ctl_add_name(struct gctl_req
 		return;
 	}
 
-	/*
-	 * Now add....
-	 */
-	(void) g_multipath_add_disk(gp, pp);
+	error = g_multipath_add_disk(gp, pp);
+	if (error != 0)
+		gctl_error(req, "Provider addition error: %d", error);
 }
 
 static void



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