3 # revert a reshape that is increasing the number of devices,
4 # raid5, raid6, and raid10
7 mdadm -CR --assume-clean $md0 -l5 -n4 -x1 $devlist4
9 testdev $md0 3 $mdsize1 512
13 mdadm -A $md0 --update=revert-reshape $devlist4 --backup-file=/tmp/md-backup
16 testdev $md0 3 $mdsize1 512
20 mdadm -CR --assume-clean $md0 -l6 -n4 -x1 $devlist4
22 testdev $md0 2 $mdsize1 512
26 mdadm -A $md0 --update=revert-reshape $devlist4 --backup-file=/tmp/md-backup
29 testdev $md0 2 $mdsize1 512
33 mdadm -CR --assume-clean $md0 -l10 -n4 -x1 $devlist4
35 testdev $md0 2 $mdsize1 512
39 strace -o /tmp/str ./mdadm -A $md0 --update=revert-reshape $devlist4
42 testdev $md0 2 $mdsize1 512