]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Discard get_sync_pos. We should be using get_resync_start.
authorNeil Brown <neilb@suse.de>
Mon, 26 May 2008 23:18:53 +0000 (09:18 +1000)
committerNeil Brown <neilb@suse.de>
Mon, 26 May 2008 23:18:53 +0000 (09:18 +1000)
commit77402e51054701cd02ff07f8d5d43ef23e640226
tree9f76dbf1688ce36341ef023d33649a51bb5b176f
parent75aa18b53cb2df342bc78dd9e44cd0f0c51075f0
Discard get_sync_pos.  We should be using get_resync_start.

"sync_complete" just tracks the current resync/recover/check/whatever pass.
"resync_start" tracks which parts of the array are known to be in-sync
(modulo active writes).  So it is what we need to use to update the metadata.
Also we cannot call it when the array has stopped, as the value is no longer
available then.  We must call it when the resync completes.
Possibly also call it preiodically if the array is quiescent.
managemon.c
mdmon.h
monitor.c