]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Assemble: improve efficacy of -Af in assembling degraded dirty arrays.
authorNeilBrown <neilb@suse.de>
Wed, 23 Mar 2011 00:07:27 +0000 (11:07 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 23 Mar 2011 00:07:27 +0000 (11:07 +1100)
commit89ced23b58cfd4529ade47488ee37a5ffce7cd8e
treee2bf25bc0561f7db81fe529d0ff5d4663f1c5d17
parent666bba9b5011150ff01de421dd44b06c0a6610a5
Assemble: improve efficacy of -Af in assembling degraded dirty arrays.

If a degraded dirty array has some superblocks which are clean and
others that are dirty, and the dirty ones are newer by precisely '1'
in the event count, then the current code to force the array to be
clean will not work.
We need to make sure to find a superblock with most recent event count
and force that one to be 'clean'.

Reported-by: A J Wyborny <ajwyborny@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Assemble.c