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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "[email protected]"