3 # test interrupting and restarting raid5 reshape.
9 eval devs=\"$devs \$dev$disks\"
12 do dd if=/dev/urandom of=$d bs=1024 || true
21 mdadm -CR $md0 -amd -l5 -c $chunk -n$disks --assume-clean $devs
22 mdadm $md0 --add $dev6
23 echo 20 > /proc/sys/dev/raid/speed_limit_min
24 echo 20 > /proc/sys/dev/raid/speed_limit_max
25 mdadm --grow $md0 -n $[disks+1]
29 mdadm --assemble $md0 $devs $dev6
31 echo 1000 > /proc/sys/dev/raid/speed_limit_min
32 echo 2000 > /proc/sys/dev/raid/speed_limit_max
34 echo check > /sys/block/md0/md/sync_action
36 mm=`cat /sys/block/md0/md/mismatch_cnt`
38 then echo >&2 "ERROR mismatch_cnt non-zero : $mm" ; exit 1