]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdmon: periodically checkpoint recovery
authorDan Williams <dan.j.williams@intel.com>
Sat, 15 May 2010 00:42:49 +0000 (17:42 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 15 May 2010 00:42:49 +0000 (17:42 -0700)
commit484240d8a3facde992009efd81bfa4cc0c79287d
treee8caef63af97a57817ab331256528f0836737ea3
parent63b4aae33ebf00d443378daf313622630f2336c0
mdmon: periodically checkpoint recovery

The kernel updates and notifies md/sync_completed when it is time to
take a checkpoint.  When this occurs (at 1/16 array size intervals)
write 'idle' to md/sync_action to have the current recovery position
updated in recovery_start and resync_start.

Requires the metadata handler to reset ->last_checkpoint when it has
determined that recovery has ended.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
managemon.c
mdmon.h
monitor.c
super-intel.c