diff options
| author | 2016-04-26 13:22:16 +0000 | |
|---|---|---|
| committer | 2016-04-26 13:22:16 +0000 | |
| commit | eedc7351dc5dad66f0426cd000fa7ce26d2a8aa7 (patch) | |
| tree | 55beed7c8b39ec7ccf81f795a841b4b4ce3d0e1d /sys/dev/softraid.c | |
| parent | KNF / spacing (diff) | |
| download | wireguard-openbsd-eedc7351dc5dad66f0426cd000fa7ce26d2a8aa7.tar.xz wireguard-openbsd-eedc7351dc5dad66f0426cd000fa7ce26d2a8aa7.zip | |
Restore intro comment to sr_hotspare_rebuild(), which was erroneously
replaced by comment for first chunk of code.
Pointed out by jsing@.
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 == |
