aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2005-11-09 00:39:26 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-09 10:56:37 -0500
commit9d88883e68f404d5581bd391713ceef470ea53a9 (patch)
tree09217a737ca91fb1d105df601741a61e141d4946 /include/linux
parent24dd469d728dae07f40c5d79ea6dedd38cdf1a30 (diff)
[PATCH] md: teach raid5 the difference between 'check' and 'repair'.
With this, raid5 can be asked to check parity without repairing it. It also keeps a count of the number of incorrect parity blocks found (mismatches) and reports them through sysfs. Signed-off-by: Neil Brown <neilb@suse.de> Cc: Greg KH <greg@kroah.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/raid/md_k.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/raid/md_k.h b/include/linux/raid/md_k.h
index efd04dca0abd..cb8b44d1588b 100644
--- a/include/linux/raid/md_k.h
+++ b/include/linux/raid/md_k.h
@@ -175,6 +175,10 @@ struct mddev_s
175 sector_t resync_mark_cnt;/* blocks written at resync_mark */ 175 sector_t resync_mark_cnt;/* blocks written at resync_mark */
176 176
177 sector_t resync_max_sectors; /* may be set by personality */ 177 sector_t resync_max_sectors; /* may be set by personality */
178
179 sector_t resync_mismatches; /* count of sectors where
180 * parity/replica mismatch found
181 */
178 /* recovery/resync flags 182 /* recovery/resync flags
179 * NEEDED: we might need to start a resync/recover 183 * NEEDED: we might need to start a resync/recover
180 * RUNNING: a thread is running, or about to be started 184 * RUNNING: a thread is running, or about to be started