10 mdconfig -a -t malloc -s 1M -u $us || exit 1
11 mdconfig -a -t malloc -s 2M -u `expr $us + 1` || exit 1
12 mdconfig -a -t malloc -s 3M -u `expr $us + 2` || exit 1
14 gstripe create -s 16384 $name /dev/md${us} /dev/md`expr $us + 1` /dev/md`expr $us + 2` || exit 1
17 # Size of created device should be 1MB * 3.
19 size=`diskinfo /dev/stripe/${name} | awk '{print $3}'`
21 if [ $size -eq 3145728 ]; then
29 mdconfig -d -u `expr $us + 1`
30 mdconfig -d -u `expr $us + 2`