summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid_raid1.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2009-06-24 12:06:00 +0000
committerjsing <jsing@openbsd.org>2009-06-24 12:06:00 +0000
commit8989bbe95858045bc50afa846119edf1e7ccaa2d (patch)
tree8432ccdb8608fc174e75d82794a7f42ec80ae99e /sys/dev/softraid_raid1.c
parentfor the isp(4) driver, invert the meaning of the options which pull (diff)
downloadwireguard-openbsd-8989bbe95858045bc50afa846119edf1e7ccaa2d.tar.xz
wireguard-openbsd-8989bbe95858045bc50afa846119edf1e7ccaa2d.zip
Abort the current rebuild if the rebuild chunk disappears. Whilst here also
rename the abort flag so that it is more generalised. ok marco@
Diffstat (limited to 'sys/dev/softraid_raid1.c')
-rw-r--r--sys/dev/softraid_raid1.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/softraid_raid1.c b/sys/dev/softraid_raid1.c
index 5ff1e6d666f..57227846341 100644
--- a/sys/dev/softraid_raid1.c
+++ b/sys/dev/softraid_raid1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid_raid1.c,v 1.15 2009/06/18 15:55:15 jsing Exp $ */
+/* $OpenBSD: softraid_raid1.c,v 1.16 2009/06/24 12:06:00 jsing Exp $ */
/*
* Copyright (c) 2007 Marco Peereboom <marco@peereboom.us>
*
@@ -163,7 +163,10 @@ sr_raid1_set_chunk_state(struct sr_discipline *sd, int c, int new_state)
case BIOC_SDREBUILD:
switch (new_state) {
case BIOC_SDONLINE:
+ break;
case BIOC_SDOFFLINE:
+ /* Abort rebuild since the rebuild chunk disappeared. */
+ sd->sd_reb_abort = 1;
break;
default:
goto die;