]> git.ipfire.org Git - thirdparty/mdadm.git/commit
DDF: compare_super_ddf: fix sequence number check
authormwilck@arcor.de <mwilck@arcor.de>
Sat, 14 Sep 2013 20:47:12 +0000 (22:47 +0200)
committerNeilBrown <neilb@suse.de>
Wed, 16 Oct 2013 04:29:43 +0000 (15:29 +1100)
commit7039479987745f19b166b1c28d45dfc41420e6d9
tree71bd653964dd808d23913a768449a40b1c628a53
parentaa0faa10b2ba251f6f543f3a283230c33b13f66d
DDF: compare_super_ddf: fix sequence number check

The sequence number check in compare_super_ddf was broken,
anchor sequence number is always -1.

With this patch, mdadm will refuse to add a disk with non-matching
sequence number.

This fixes Francis Moreau's problem reported with subject
"mdadm 3.3 fails to kick out non fresh disk".

FIXME: More work is needed here. Currently mdadm won't even add the
disk to the container, that's wrong. It should be added as a spare.

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