aboutsummaryrefslogtreecommitdiffstats
path: root/tests/zfs-tests/include
diff options
context:
space:
mode:
authorLOLi <[email protected]>2018-10-17 20:21:07 +0200
committerBrian Behlendorf <[email protected]>2018-10-17 11:21:07 -0700
commit2e55034471413fb668d0d910b2c083610b386127 (patch)
treec98742bb3f508bf0bd61f2db449621a15f60bc28 /tests/zfs-tests/include
parent49394a7708e9de4f67e4cd4fb34b59b64ec7aeb1 (diff)
zpool: allow sharing of spare device among pools
ZFS allows, by default, sharing of spare devices among different pools; this commit simply restores this functionality for disk devices and adds an additional tests case to the ZFS Test Suite to prevent future regression. Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: loli10K <[email protected]> Closes #7999
Diffstat (limited to 'tests/zfs-tests/include')
-rw-r--r--tests/zfs-tests/include/libtest.shlib1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/zfs-tests/include/libtest.shlib b/tests/zfs-tests/include/libtest.shlib
index 28ee345c8..51088fccb 100644
--- a/tests/zfs-tests/include/libtest.shlib
+++ b/tests/zfs-tests/include/libtest.shlib
@@ -3190,6 +3190,7 @@ function wait_scrubbed
{
typeset pool=${1:-$TESTPOOL}
typeset iter=${2:-10}
+ typeset -i i=0
for i in {1..$iter} ; do
if is_pool_scrubbed $pool ; then
return 0