ZTS: add zed_fd_spill to verify the fds ZEDLETs inherit

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #11891
This commit is contained in:
наб
2021-04-12 14:08:33 +02:00
committed by Brian Behlendorf
parent 55cf5a255a
commit 15d3470c2e
8 changed files with 127 additions and 11 deletions
+1 -6
View File
@@ -3577,16 +3577,11 @@ function wait_replacing #pool
# Wait for a pool to be scrubbed
#
# $1 pool name
# $2 number of seconds to wait (optional)
#
# Returns true when pool has been scrubbed, or false if there's a timeout or if
# no scrub was done.
#
function wait_scrubbed
{
typeset pool=${1:-$TESTPOOL}
while true ; do
is_pool_scrubbed $pool && break
while ! is_pool_scrubbed $pool ; do
sleep 1
done
}