]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] md: improve 'scan_mode' and rename it to 'sync_action'
authorNeilBrown <neilb@suse.de>
Wed, 9 Nov 2005 05:39:44 +0000 (21:39 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 15:56:40 +0000 (07:56 -0800)
commit7eec314d7512d5281742263cff3853b43df431db
tree3d74f5950b6d9fede5ddc617f0a7ab03eeee0dd3
parent787453c2397edcc3261efebb661739acd8c38547
[PATCH] md: improve 'scan_mode' and rename it to 'sync_action'

The current sync_action for an array can be one of

   idle  - nothing happening
   resync - reduncancy being recalcualted
   recover - missing device being recoverred to spare
   check   - user initiated check of redundancy
   repair  - like resync but user-initiated and ignores
             bitmap optimisation.

Each of these strings can also be written to the 'sync_action' file to cause
that action to happen (if appropriate).

While 'sync' is not technically correct, as a recovery is *not* a 'sync', I
think it is the most servicable word here.  Also 'action' is a strong word
than 'mode'.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/md.c