diff options
Diffstat (limited to 'sys/dev/softraid.c')
| -rw-r--r-- | sys/dev/softraid.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index 87a459942e7..4c79d9306c9 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.371 2016/04/19 21:47:56 krw Exp $ */ +/* $OpenBSD: softraid.c,v 1.372 2016/04/26 13:22:16 krw Exp $ */ /* * Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us> * Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org> @@ -3010,6 +3010,10 @@ sr_hotspare_rebuild(struct sr_discipline *sd) struct sr_ccb *ccb; int i, s, cid, busy; + /* + * Attempt to locate a hotspare and initiate rebuild. + */ + /* Find first offline chunk. */ for (cid = 0; cid < sd->sd_meta->ssdi.ssd_chunk_no; cid++) { if (sd->sd_vol.sv_chunks[cid]->src_meta.scm_status == |
