]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-ddf.c
DDF: Don't fail compare_super_ddf due to re-configure changes.
authorNeilBrown <neilb@suse.de>
Wed, 2 Apr 2014 04:26:35 +0000 (15:26 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 2 Apr 2014 04:26:35 +0000 (15:26 +1100)
commitf43f5b32991c7f5a188940b00989c27f87feee81
treef0a4809492263b4f655f06220f3e66495bb7cc2b
parent188d31ed2b6dc195a4be1f5620ce2e5185d4e789
DDF: Don't fail compare_super_ddf due to re-configure changes.

It is possible that one device has seem some reconfig but the other
hasn't.  In that case  they are still the "same" DDF, even though
one might be older.  Such age will be detected by 'seq' differences.

If A is new and B is old, then it is import that
  mdadm -I B
  mdadm -I A

doesn't get confused because A has the same uuid as B, but compare_super fails.

So: if the seq numbers are different, then just accept as two
different superblocks.
If they are the same, then look to copy data from new to old.

Signed-off-by: NeilBrown <neilb@suse.de>
super-ddf.c