summaryrefslogtreecommitdiff
path: root/sys/dev/softraid_raid5.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/softraid_raid5.c')
-rw-r--r--sys/dev/softraid_raid5.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/sys/dev/softraid_raid5.c b/sys/dev/softraid_raid5.c
index 121694f6564..49dd8150cd8 100644
--- a/sys/dev/softraid_raid5.c
+++ b/sys/dev/softraid_raid5.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid_raid5.c,v 1.7 2014/01/21 10:21:05 jsing Exp $ */
+/* $OpenBSD: softraid_raid5.c,v 1.8 2014/01/21 10:25:25 jsing Exp $ */
/*
* Copyright (c) 2009 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2009 Jordan Hargrave <jordan@openbsd.org>
@@ -284,46 +284,46 @@ sr_raid5_set_vol_state(struct sr_discipline *sd)
/* XXX this might be a little too much */
goto die;
- case BIOC_SVBUILDING:
+ case BIOC_SVDEGRADED:
switch (new_state) {
- case BIOC_SVONLINE:
case BIOC_SVOFFLINE:
- case BIOC_SVBUILDING: /* can go to the same state */
+ case BIOC_SVREBUILD:
+ case BIOC_SVDEGRADED: /* can go to the same state */
break;
default:
goto die;
}
break;
- case BIOC_SVSCRUB:
+ case BIOC_SVBUILDING:
switch (new_state) {
case BIOC_SVONLINE:
case BIOC_SVOFFLINE:
- case BIOC_SVDEGRADED:
- case BIOC_SVSCRUB: /* can go to same state */
+ case BIOC_SVBUILDING: /* can go to the same state */
break;
default:
goto die;
}
break;
- case BIOC_SVREBUILD:
+ case BIOC_SVSCRUB:
switch (new_state) {
case BIOC_SVONLINE:
case BIOC_SVOFFLINE:
case BIOC_SVDEGRADED:
- case BIOC_SVREBUILD: /* can go to the same state */
+ case BIOC_SVSCRUB: /* can go to same state */
break;
default:
goto die;
}
break;
- case BIOC_SVDEGRADED:
+ case BIOC_SVREBUILD:
switch (new_state) {
+ case BIOC_SVONLINE:
case BIOC_SVOFFLINE:
- case BIOC_SVREBUILD:
- case BIOC_SVDEGRADED: /* can go to the same state */
+ case BIOC_SVDEGRADED:
+ case BIOC_SVREBUILD: /* can go to the same state */
break;
default:
goto die;