Report disk addition errors on add
or create
subcommand.
MFC after: 1 week
This commit is contained in:
parent
c468ff880a
commit
d3fef0a092
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=312533
@ -923,6 +923,7 @@ g_multipath_ctl_add_name(struct gctl_req *req, struct g_class *mp,
|
||||
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 *req, struct g_class *mp,
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user