summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid_raid0.c
diff options
context:
space:
mode:
authormarco <marco@openbsd.org>2009-04-28 02:54:53 +0000
committermarco <marco@openbsd.org>2009-04-28 02:54:53 +0000
commita1d8c2c6c0d9692a432961b020307ba559efa1ed (patch)
tree3556a331228eda8318ef23c0dbf18e8650f48886 /sys/dev/softraid_raid0.c
parentit's easier to have the speaker dac in the converter group than (diff)
downloadwireguard-openbsd-a1d8c2c6c0d9692a432961b020307ba559efa1ed.tar.xz
wireguard-openbsd-a1d8c2c6c0d9692a432961b020307ba559efa1ed.zip
Part one of partial bringup volumes. Plenty of rope to kill your data
use with caution...
Diffstat (limited to 'sys/dev/softraid_raid0.c')
-rw-r--r--sys/dev/softraid_raid0.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/softraid_raid0.c b/sys/dev/softraid_raid0.c
index 6422dd53e35..0eb76ed61ef 100644
--- a/sys/dev/softraid_raid0.c
+++ b/sys/dev/softraid_raid0.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid_raid0.c,v 1.11 2008/11/25 23:05:17 marco Exp $ */
+/* $OpenBSD: softraid_raid0.c,v 1.12 2009/04/28 02:54:53 marco Exp $ */
/*
* Copyright (c) 2008 Marco Peereboom <marco@peereboom.us>
*
@@ -173,7 +173,7 @@ sr_raid0_set_vol_state(struct sr_discipline *sd)
switch (old_state) {
case BIOC_SVONLINE:
- if (new_state == BIOC_SVOFFLINE)
+ if (new_state == BIOC_SVOFFLINE || new_state == BIOC_SVONLINE)
break;
else
goto die;