]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Assemble: when forcing a single-degraded RAID6 array, trigger a 'repair'.
authorNeilBrown <neilb@suse.de>
Wed, 19 Jun 2013 01:09:33 +0000 (11:09 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 19 Jun 2013 01:09:33 +0000 (11:09 +1000)
commit8cde842b189368d7c27923497e5d6be9b35b241b
treec35f7966cdc6698185a1a42903c99ffccceae3e0
parent54def20f8be761e6f406a971a5d8d14973f4ea22
Assemble: when forcing a single-degraded RAID6 array, trigger a 'repair'.

When an active/degraded RAID6 array is force-started we clear the
'active' flag, but it is still possible that some parity is
no in sync.  This is because there are two parity block.
It would be nice to be able to tell the kernel "P is OK, Q maybe not".
But that is not possible.

So when we force-assemble such an array, trigger a 'repair' to fix up
any errant Q blocks.

This is not ideal as a restart during the repair will not be continued
after the restart, but it is the best we can do without kernel help.

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