brad-lewis commented on this pull request.


> @@ -1675,6 +1675,26 @@ function is_pool_removed #pool
        return $?
 }
 
+function wait_for_degraded
+{
+       typeset pool=$1
+       typeset timeout=${2:-30}
+       typeset t0=$SECONDS
+
+       while :; do
+               zpool status -v $pool 2>/dev/null | grep -q "state: DEGRADED"

Or on John Kennedy's suggestion I used the get_pool_prop function from 
libtest.shlib.  

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openzfs/openzfs/pull/583#discussion_r183797919
------------------------------------------
openzfs: openzfs-developer
Permalink: 
https://openzfs.topicbox.com/groups/developer/discussions/T5104e463417473b6-M35d366d24ef830a76b56fd5b
Delivery options: https://openzfs.topicbox.com/groups

Reply via email to