3 # test interrupting and restartign raid5 reshape.
9 eval devs=\"$devs \$dev$disks\"
12 do dd if=/dev/urandom of=$d bs=1024 || true
15 mdadm -CR $md0 -amd -l5 -n$disks --assume-clean $devs
16 mdadm $md0 --add $dev6
17 echo 20 > /proc/sys/dev/raid/speed_limit_max
18 mdadm --grow $md0 -n $[disks+1]
22 mdadm --assemble $md0 $devs $dev6
24 echo 2000 > /proc/sys/dev/raid/speed_limit_max
26 echo check > /sys/block/md0/md/sync_action
28 mm=`cat /sys/block/md0/md/mismatch_cnt`
30 then echo >&2 "ERROR mismatch_cnt non-zero : $mm" ; exit 1