diff options
author | 2017-08-30 12:43:18 +0000 | |
---|---|---|
committer | 2017-08-30 12:43:18 +0000 | |
commit | 313d71db1e2bf72ff7ff6936fc6584dcfae37af0 (patch) | |
tree | 5602412019b99c21335b6336939cc8de338f536e /sys/dev/softraid.c | |
parent | Fix ifdef to if in gcm128.c (diff) | |
download | wireguard-openbsd-313d71db1e2bf72ff7ff6936fc6584dcfae37af0.tar.xz wireguard-openbsd-313d71db1e2bf72ff7ff6936fc6584dcfae37af0.zip |
Report the rebuild state properly, so that in the case of a rebuild
the sensor does not show the drive state as "unknown".
ok phessler@
Diffstat (limited to 'sys/dev/softraid.c')
-rw-r--r-- | sys/dev/softraid.c | 7 |
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; |