1#!/bin/sh 2# $FreeBSD$ 3 4. `dirname $0`/conf.sh 5 6echo "1..1" 7 8tsize=3 9src=`mktemp $base.XXXXXX` || exit 1 10dst=`mktemp $base.XXXXXX` || exit 1 11 12dd if=/dev/random of=${src} bs=1m count=$tsize >/dev/null 2>&1 13 14us0=$(attach_md -t malloc -s 1M) || exit 1 15us1=$(attach_md -t malloc -s 2M) || exit 1 16us2=$(attach_md -t malloc -s 3M) || exit 1 17 18gstripe create -s 8192 $name /dev/$us0 /dev/$us1 /dev/$us2 || exit 1 19devwait 20 21dd if=${src} of=/dev/stripe/${name} bs=1m count=$tsize >/dev/null 2>&1 22dd if=/dev/stripe/${name} of=${dst} bs=1m count=$tsize >/dev/null 2>&1 23 24if [ `md5 -q ${src}` != `md5 -q ${dst}` ]; then 25 echo "not ok 1" 26else 27 echo "ok 1" 28fi 29 30rm -f ${src} ${dst} 31