From eedc7351dc5dad66f0426cd000fa7ce26d2a8aa7 Mon Sep 17 00:00:00 2001 From: krw Date: Tue, 26 Apr 2016 13:22:16 +0000 Subject: Restore intro comment to sr_hotspare_rebuild(), which was erroneously replaced by comment for first chunk of code. Pointed out by jsing@. --- sys/dev/softraid.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/dev/softraid.c') 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 * Copyright (c) 2008 Chris Kuethe @@ -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 == -- cgit v1.2.3-59-g8ed1b