summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarco <marco@openbsd.org>2009-06-02 16:32:23 +0000
committermarco <marco@openbsd.org>2009-06-02 16:32:23 +0000
commitae43ea2d053095c1e5e2a9560d67b3799044762f (patch)
treeda2dec5b830a7723db6632aa19a81cbf08a8abe5
parentdo not leak mbufs in the Rx path in case hardware decryption failed. (diff)
downloadwireguard-openbsd-ae43ea2d053095c1e5e2a9560d67b3799044762f.tar.xz
wireguard-openbsd-ae43ea2d053095c1e5e2a9560d67b3799044762f.zip
Rebuild can go to degraded
-rw-r--r--sys/dev/softraid_raid1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/softraid_raid1.c b/sys/dev/softraid_raid1.c
index 6c10be2ea1a..719f18bed33 100644
--- a/sys/dev/softraid_raid1.c
+++ b/sys/dev/softraid_raid1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid_raid1.c,v 1.12 2009/06/02 11:38:51 deraadt Exp $ */
+/* $OpenBSD: softraid_raid1.c,v 1.13 2009/06/02 16:32:23 marco Exp $ */
/*
* Copyright (c) 2007 Marco Peereboom <marco@peereboom.us>
*
@@ -283,6 +283,7 @@ sr_raid1_set_vol_state(struct sr_discipline *sd)
switch (new_state) {
case BIOC_SVONLINE:
case BIOC_SVOFFLINE:
+ case BIOC_SVDEGRADED:
case BIOC_SVREBUILD: /* can go to the same state */
break;
default: