]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
mdadm/tests: wait until level changes
authorXiao Ni <xni@redhat.com>
Wed, 11 Sep 2024 08:54:27 +0000 (16:54 +0800)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Mon, 23 Sep 2024 08:48:47 +0000 (10:48 +0200)
check wait waits reshape finishes, but it doesn't wait level changes.
The level change happens in a forked child progress. So we need to
search the child progress and monitor it.

Signed-off-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
tests/05r6tor0

index 2fd51f2ea4bbd05dc6be94dd56d3b16bc44bd9e5..b2685b721c2e9df2cd63762f33e8009134946e3a 100644 (file)
@@ -13,6 +13,10 @@ check raid5
 testdev $md0 3 19456 512
 mdadm -G $md0 -l0
 check wait; sleep 1
+while ps auxf | grep "mdadm -G" | grep -v grep
+do
+        sleep 1
+done
 check raid0
 testdev $md0 3 19456 512
 mdadm -G $md0 -l5 --add $dev3 $dev4