aboutsummaryrefslogtreecommitdiff
path: root/include/linux/raid
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2006-01-06 00:21:36 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-06 08:34:10 -0800
commit88202a0c84e1951d6630d1d557d4801a8cc5b5ef (patch)
tree5a1aadc008de1ee68f40a4bb667157f248211230 /include/linux/raid
parent6d7ff7380b2e28c2807da3bf9fa614d91d15bacf (diff)
[PATCH] md: allow sync-speed to be controlled per-device
Also export current (average) speed and status in sysfs. Signed-off-by: Neil Brown <neilb@suse.de> Acked-by: 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/raid')
-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 68b929c079a..617b9506c76 100644
--- a/include/linux/raid/md_k.h
+++ b/include/linux/raid/md_k.h
@@ -143,6 +143,10 @@ struct mddev_s
sector_t resync_mismatches; /* count of sectors where
* parity/replica mismatch found
*/
+ /* if zero, use the system-wide default */
+ int sync_speed_min;
+ int sync_speed_max;
+
int ok_start_degraded;
/* recovery/resync flags
* NEEDED: we might need to start a resync/recover