3 # Test in-kernel autodetect.
4 # Create a partitionable array on each of two devices,
5 # put a partition on each, create an array, and see if we can
6 # use autodetect to restart the array.
8 if lsmod | grep md_mod > /dev/null 2>&1
10 echo md is a module - cannot test autodetect
15 mdadm -CR -e 0 $mdp0 -l0 -f -n1 $dev0
16 mdadm -CR -e 0 $mdp1 -l0 -f -n1 $dev1
17 sfdisk $mdp0 >&2 << END
20 sfdisk $mdp1 >&2 << END
23 mdadm -CR -e 0 $md0 -l1 -n2 ${mdp0}p1 ${mdp1}p1