summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-12-19 22:58:25 +0000
committerpjd <pjd@FreeBSD.org>2004-12-19 22:58:25 +0000
commitfccc23ca68e7836b885fced15aa1e228112d9e20 (patch)
tree0ac7d0936c1e02386b66dcb2e171388ec4c1ed98 /sys
parente6bc8607e0fe56832af5883e3bd5d1bfa064ccad (diff)
downloadFreeBSD-src-fccc23ca68e7836b885fced15aa1e228112d9e20.zip
FreeBSD-src-fccc23ca68e7836b885fced15aa1e228112d9e20.tar.gz
Don't quit on first failure, just skip failures.
Diffstat (limited to 'sys')
-rw-r--r--sys/geom/mirror/g_mirror_ctl.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/geom/mirror/g_mirror_ctl.c b/sys/geom/mirror/g_mirror_ctl.c
index 0ec5401..2afa1ac 100644
--- a/sys/geom/mirror/g_mirror_ctl.c
+++ b/sys/geom/mirror/g_mirror_ctl.c
@@ -231,12 +231,12 @@ g_mirror_ctl_rebuild(struct gctl_req *req, struct g_class *mp)
name = gctl_get_asciiparam(req, param);
if (name == NULL) {
gctl_error(req, "No 'arg%u' argument.", i);
- return;
+ continue;
}
disk = g_mirror_find_disk(sc, name);
if (disk == NULL) {
gctl_error(req, "No such provider: %s.", name);
- return;
+ continue;
}
if (g_mirror_ndisks(sc, G_MIRROR_DISK_STATE_ACTIVE) == 1 &&
disk->d_state == G_MIRROR_DISK_STATE_ACTIVE) {
@@ -464,12 +464,12 @@ g_mirror_ctl_remove(struct gctl_req *req, struct g_class *mp)
name = gctl_get_asciiparam(req, param);
if (name == NULL) {
gctl_error(req, "No 'arg%u' argument.", i);
- return;
+ continue;
}
disk = g_mirror_find_disk(sc, name);
if (disk == NULL) {
gctl_error(req, "No such provider: %s.", name);
- return;
+ continue;
}
g_mirror_event_send(disk, G_MIRROR_DISK_STATE_DESTROY,
G_MIRROR_EVENT_WAIT);
@@ -512,12 +512,12 @@ g_mirror_ctl_deactivate(struct gctl_req *req, struct g_class *mp)
name = gctl_get_asciiparam(req, param);
if (name == NULL) {
gctl_error(req, "No 'arg%u' argument.", i);
- return;
+ continue;
}
disk = g_mirror_find_disk(sc, name);
if (disk == NULL) {
gctl_error(req, "No such provider: %s.", name);
- return;
+ continue;
}
/*
* Do rebuild by resetting syncid and disconnecting disk.
OpenPOWER on IntegriCloud