1#!/bin/sh 2# $FreeBSD$ 3 4set -e 5 6MD=99 7ME=98 8s=1m 9mdconfig -d -u $MD || true 10mdconfig -d -u $ME || true 11mdconfig -a -t malloc -s $s -u $MD 12mdconfig -a -t malloc -s $s -u $ME 13disklabel -w md$MD auto 14disklabel -w md$ME auto 15./newfs -R /dev/md${MD}c 16./newfs -R /dev/md${ME}c 17if cmp /dev/md${MD}c /dev/md${ME}c ; then 18 echo "Test passed" 19 e=0 20else 21 echo "Test failed" 22 e=1 23fi 24mdconfig -d -u $MD || true 25mdconfig -d -u $ME || true 26exit $e 27 28