summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/softraid.c')
-rw-r--r--sys/dev/softraid.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c
index 1593c76bdcd..8b75f238072 100644
--- a/sys/dev/softraid.c
+++ b/sys/dev/softraid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid.c,v 1.383 2017/07/24 12:32:32 gsoares Exp $ */
+/* $OpenBSD: softraid.c,v 1.384 2017/08/30 12:43:18 patrick Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org>
@@ -4867,6 +4867,11 @@ sr_sensors_refresh(void *arg)
sv->sv_sensor.status = SENSOR_S_WARN;
break;
+ case BIOC_SVREBUILD:
+ sv->sv_sensor.value = SENSOR_DRIVE_REBUILD;
+ sv->sv_sensor.status = SENSOR_S_WARN;
+ break;
+
case BIOC_SVSCRUB:
case BIOC_SVONLINE:
sv->sv_sensor.value = SENSOR_DRIVE_ONLINE;