aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/raid
diff options
context:
space:
mode:
authorNeil Brown <neilb@notabene.brown>2008-06-27 18:31:24 -0400
committerNeil Brown <neilb@notabene.brown>2008-06-27 18:31:24 -0400
commit5e96ee65c8bd629ce093da67a066d3946468298a (patch)
treee1ff9e4984d71ffaa842e7e1d19c282fa9e01bcd /include/linux/raid
parenta0da84f35b25875870270d16b6eccda4884d61a7 (diff)
Allow setting start point for requested check/repair
This makes it possible to just resync a small part of an array. e.g. if a drive reports that it has questionable sectors, a 'repair' of just the region covering those sectors will cause them to be read and, if there is an error, re-written with correct data. Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'include/linux/raid')
-rw-r--r--include/linux/raid/md_k.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/raid/md_k.h b/include/linux/raid/md_k.h
index 3dea9f545c8f..780e0613e6d5 100644
--- a/include/linux/raid/md_k.h
+++ b/include/linux/raid/md_k.h
@@ -227,6 +227,8 @@ struct mddev_s
227 atomic_t recovery_active; /* blocks scheduled, but not written */ 227 atomic_t recovery_active; /* blocks scheduled, but not written */
228 wait_queue_head_t recovery_wait; 228 wait_queue_head_t recovery_wait;
229 sector_t recovery_cp; 229 sector_t recovery_cp;
230 sector_t resync_min; /* user requested sync
231 * starts here */
230 sector_t resync_max; /* resync should pause 232 sector_t resync_max; /* resync should pause
231 * when it gets here */ 233 * when it gets here */
232 234