]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Manage: be more careful about --add attempts.
authorNeilBrown <neilb@suse.de>
Mon, 22 Nov 2010 08:35:25 +0000 (19:35 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 10 Mar 2011 06:25:40 +0000 (17:25 +1100)
commitd6508f0cfb60edf07b36f1532eae4d9cddf7178b
treef0169e472ef9b1344bfcb9fe61f180e46d80a08b
parent37e430d163f71417f50371cb2871e4828490ed7a
Manage:  be more careful about --add attempts.

If an --add is requested and a re-add looks promising but fails or
cannot possibly succeed, then don't try the add.  This avoids
inadvertently turning devices into spares when an array is failed but
the devices seem to actually work.

Signed-off-by: NeilBrown <neilb@suse.de>
Manage.c
mdadm.h
tests/01r1fail
util.c