]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Assemble: avoid infinite loop when auto-assembling partial container.
authorNeilBrown <neilb@suse.de>
Mon, 20 Jan 2014 04:23:31 +0000 (15:23 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 20 Jan 2014 04:23:31 +0000 (15:23 +1100)
commit284546ef89168c9003da192a177cae774199f889
tree046e26ca64436c58ca92f2e74160976998431e1f
parenta34fea0eae78fbabb289a5bce6d7a04bf889156d
Assemble: avoid infinite loop when auto-assembling partial container.

When auto-assembling we loop until we get no successes.

If a device is found that look like it is part of an already-existing
container, but we subsequently fail to add that device, then the fact
that the container is running looks like a success.  This can result
in infinite looping.
So if a container was already partially assemble, and is still only
partially assembled after we try to add devices, then don't treat that
as success.

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