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