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 13us0=$(attach_md -t malloc -s 1M) || exit 1 14us1=$(attach_md -t malloc -s 2M) || exit 1 15us2=$(attach_md -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