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:
https://github.com/openzfs/openzfs/pull/583#pullrequestreview-101652492
------------------------------------------
openzfs: openzfs-developer
Permalink: 
https://openzfs.topicbox.com/groups/developer/discussions/T5104e463417473b6-M503fda4809d37c0895c68436
Delivery options: https://openzfs.topicbox.com/groups

Reply via email to