summaryrefslogtreecommitdiffstats
path: root/tests/07reshape5intr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-12-12 17:22:06 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-12-12 17:22:06 +0000
commit702eb8bf57b076e15e074f6a0c6fd04fb62546d9 (patch)
treee356c38fbe7b86af13593f321fa0da09a991e76f /tests/07reshape5intr
parentAdding upstream version 4.3+20241108. (diff)
downloadmdadm-702eb8bf57b076e15e074f6a0c6fd04fb62546d9.tar.xz
mdadm-702eb8bf57b076e15e074f6a0c6fd04fb62546d9.zip
Adding upstream version 4.3+20241202.upstream/4.3+20241202upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/07reshape5intr')
-rw-r--r--tests/07reshape5intr16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/07reshape5intr b/tests/07reshape5intr
index 0f4803a..2af2910 100644
--- a/tests/07reshape5intr
+++ b/tests/07reshape5intr
@@ -31,7 +31,21 @@ do
echo 1000 > /proc/sys/dev/raid/speed_limit_min
echo 2000 > /proc/sys/dev/raid/speed_limit_max
check wait
- while ! echo check > /sys/block/md0/md/sync_action; do sleep 0.1; done
+
+ max=5
+
+ for ((i = 0 ; i < max ; i++ )); do
+ if [[ $(echo check > /sys/block/md0/md/sync_action) != 0 ]]; then
+ break;
+ fi
+ sleep 1
+ done
+
+ if [[ i == max ]]; then
+ echo >&2 "Timeout waiting for check to succeed"
+ exit 1
+ fi
+
check wait
mm=`cat /sys/block/md0/md/mismatch_cnt`
if [ $mm -gt 0 ]