]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
Assemble: fix --force assembly of v1.x arrays which are recovering.
authorNeilBrown <neilb@suse.de>
Thu, 4 Feb 2010 01:02:09 +0000 (12:02 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 4 Feb 2010 01:02:09 +0000 (12:02 +1100)
commit921d9e164fd3f6203d1b0cf2424b793043afd001
treead0fa1ec1343bd28676de6907177189ed14a748c
parentcc86f89c855fcfe9820d0621ede1575adc317155
Assemble: fix --force assembly of v1.x arrays which are recovering.

1.x metadata allows a device to be a member of the array while it
is still recoverying.  So it is a working member, but is not
completely in-sync.

mdadm/assemble does not understand this distinction and assumes that a
work member is fully in-sync for the purpose of determining if there
are enough in-sync devices for the array to be functional.

So collect the 'recovery_start' value from the metadata and use it in
assemble when determining how useful a given device is.

Reported-by: Mikael Abrahamsson <swmike@swm.pp.se>
Signed-off-by: NeilBrown <neilb@suse.de>
Assemble.c
super-ddf.c
super-intel.c
super0.c
super1.c