]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Manage.c
Relax restrictions on when --add is permitted.
authorNeilBrown <neilb@suse.de>
Wed, 18 Apr 2012 04:19:49 +0000 (14:19 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 18 Apr 2012 04:19:49 +0000 (14:19 +1000)
commit0a999759b54f94fd63ac0ee298a549acef6f7d6f
tree546f209a9b8829e64d052d9b836644e79de26af4
parentc2ecf5f61aca2d73b7d5a6cb3a26973916d5c0d1
Relax restrictions on when --add is permitted.

The restriction that --add was not allowed on a device which
looked like a recent member of an array was overly harsh.

The real requirement was to avoid using --add when the array had
failed, and the device being added might contain necessary
information which can only be incorporated by stopping and
re-assembling with --force.

So change the test to reflect the need.

Reported-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Manage.c