]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] md: allow a manual resync with md
authorNeilBrown <neilb@suse.de>
Wed, 9 Nov 2005 05:39:26 +0000 (21:39 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 15:56:37 +0000 (07:56 -0800)
commit24dd469d728dae07f40c5d79ea6dedd38cdf1a30
tree3975aaeaa6c1cd77a2d4b06184ad3bd0175a44a5
parent3f294f4fb6f2ba887b717674da26c21f3d57f3fc
[PATCH] md: allow a manual resync with md

You can trigger a 'check' with
  echo check > /sys/block/mdX/md/scan_mode
or a check-and-repair errors with
  echo repair > /sys/block/mdX/md/scan_mode

and read the current state from the same file.

Note: personalities need to know the different between 'check' and 'repair',
but don't yet.  Until they do, 'check' will be the same as 'repair' and will
just do a normal resync pass.

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>
drivers/md/md.c
include/linux/raid/md_k.h