[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>
This commit is contained in:
NeilBrown
2006-01-06 00:21:36 -08:00
committed by Linus Torvalds
parent 6d7ff7380b
commit 88202a0c84
3 changed files with 131 additions and 5 deletions

View File

@@ -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