summaryrefslogtreecommitdiffstats
path: root/tests/07reshape5intr
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-08-05 13:39:17 +0200
committerNeilBrown <neilb@suse.de>2010-08-05 13:39:17 +0200
commit72044953776dc694d2bdd721ed9e8be4ac7e4e39 (patch)
tree047c698d76cb9b5ad337706b632a7969c65a9ed6 /tests/07reshape5intr
parentudevadm settle in autodetect test (diff)
downloadmdadm-72044953776dc694d2bdd721ed9e8be4ac7e4e39.tar.xz
mdadm-72044953776dc694d2bdd721ed9e8be4ac7e4e39.zip
Fix writing of second backup superblock during grow
There 'rv' tests were confused and sometimes wrong. This resulted in not writing the second bsb. Also fix the test script so the the critical section is long enough that we have some hope of interrupting it. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to '')
-rw-r--r--tests/07reshape5intr8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/07reshape5intr b/tests/07reshape5intr
index 3a5f1150..6a26bf03 100644
--- a/tests/07reshape5intr
+++ b/tests/07reshape5intr
@@ -12,7 +12,13 @@ do
do dd if=/dev/urandom of=$d bs=1024 || true
done
- mdadm -CR $md0 -amd -l5 -c 256 -n$disks --assume-clean $devs
+ case $disks in
+ 2 | 3) chunk=1024;;
+ 4 ) chunk=512;;
+ 5 ) chunk=256;;
+ esac
+
+ mdadm -CR $md0 -amd -l5 -c $chunk -n$disks --assume-clean $devs
mdadm $md0 --add $dev6
echo 20 > /proc/sys/dev/raid/speed_limit_max
mdadm --grow $md0 -n $[disks+1]