3 # revert a reshape that is not changing the number of data 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
17 testdev $md0 3 $mdsize1 512
21 mdadm -CR --assume-clean $md0 -l6 -n5 $devlist4
23 testdev $md0 3 $mdsize1 512
27 mdadm -A $md0 --update=revert-reshape $devlist4 --backup-file=/tmp/md-backup
30 testdev $md0 3 $mdsize1 512
33 # RAID10 - decrease chunk size
34 mdadm -CR --assume-clean $md0 -l10 -n6 -c 64 $devlist5
36 testdev $md0 3 $mdsize1 64
40 strace -o /tmp/str ./mdadm -A $md0 --update=revert-reshape $devlist5
43 testdev $md0 3 $mdsize1 64