]> 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>
Mon, 22 Nov 2010 08:35:25 +0000 (19:35 +1100)
commit8453e704305b92f043e436d6f90a0c5f068b09eb
tree98a0aeb6a3e0cb87d949839489d8569119cae9cd
parentb9b004ebc7abd5a4d8ddafef1fbf08409f24b330
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