diff options
author | NeilBrown <neilb@suse.de> | 2006-01-06 03:21:36 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-06 11:34:10 -0500 |
commit | 88202a0c84e1951d6630d1d557d4801a8cc5b5ef (patch) | |
tree | 5a1aadc008de1ee68f40a4bb667157f248211230 /include | |
parent | 6d7ff7380b2e28c2807da3bf9fa614d91d15bacf (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')
-rw-r--r-- | include/linux/raid/md_k.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/raid/md_k.h b/include/linux/raid/md_k.h index 68b929c079ab..617b9506c760 100644 --- a/include/linux/raid/md_k.h +++ b/include/linux/raid/md_k.h | |||
@@ -143,6 +143,10 @@ struct mddev_s | |||
143 | sector_t resync_mismatches; /* count of sectors where | 143 | sector_t resync_mismatches; /* count of sectors where |
144 | * parity/replica mismatch found | 144 | * parity/replica mismatch found |
145 | */ | 145 | */ |
146 | /* if zero, use the system-wide default */ | ||
147 | int sync_speed_min; | ||
148 | int sync_speed_max; | ||
149 | |||
146 | int ok_start_degraded; | 150 | int ok_start_degraded; |
147 | /* recovery/resync flags | 151 | /* recovery/resync flags |
148 | * NEEDED: we might need to start a resync/recover | 152 | * NEEDED: we might need to start a resync/recover |