K 10 svn:author V 7 asomers K 8 svn:date V 27 2015-12-16T00:13:40.238279Z K 7 svn:log V 977 Fix various issues with the redundancy test suite. - Remove randomness as a factor. Instead of picking a random number of vdevs to create in the pool, always pick a specific subset that will adequately exercise redundancy, as well as make the test results more deterministic. - sync_pool(): To complete, in addition to being scrubbed, the pool must not be in the resilvered state. There appears to be a race in which the pool can have resilvered previously, and where this state isn't immediately reset upon scrubbing. This is probably because the resilver state is only updated when the scan context runs, which may be delayed from the return. - replace_missing_devs(): Don't recreate the vdev if it already exists. In the case where damage_devs() is used (as opposed to remove_devs()), the vdev file already exists and its state reconciled (but not healthy until replaced later in this function). Submitted by: Will Sponsored by: Spectra Logic Corp END