1#!/bin/sh 2# $FreeBSD$ 3 4. `dirname $0`/conf.sh 5 6echo "1..1" 7 8us=45 9 10mdconfig -a -t malloc -s 1M -u $us || exit 1 11mdconfig -a -t malloc -s 2M -u `expr $us + 1` || exit 1 12mdconfig -a -t malloc -s 3M -u `expr $us + 2` || exit 1 13 14gstripe create -s 16384 $name /dev/md${us} /dev/md`expr $us + 1` /dev/md`expr $us + 2` || exit 1 15devwait 16 17# Size of created device should be 1MB * 3. 18 19size=`diskinfo /dev/stripe/${name} | awk '{print $3}'` 20 21if [ $size -eq 3145728 ]; then 22 echo "ok 1" 23else 24 echo "not ok 1" 25fi 26 27gstripe destroy $name 28mdconfig -d -u $us 29mdconfig -d -u `expr $us + 1` 30mdconfig -d -u `expr $us + 2` 31