yuripv 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"

Using ```zpool get -Ho value health``` would look somewhat cleaner and less 
susceptible to output format changes.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
openzfs: openzfs-developer
Delivery options: https://openzfs.topicbox.com/groups

Reply via email to