2002-03-19 21:05:29 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
MD=99
|
|
|
|
ME=98
|
|
|
|
s=1m
|
|
|
|
mdconfig -d -u $MD || true
|
|
|
|
mdconfig -d -u $ME || true
|
|
|
|
mdconfig -a -t malloc -s $s -u $MD
|
|
|
|
mdconfig -a -t malloc -s $s -u $ME
|
2022-03-17 10:21:06 +00:00
|
|
|
disklabel -w md$MD auto
|
|
|
|
disklabel -w md$ME auto
|
2002-03-19 21:05:29 +00:00
|
|
|
./newfs -R /dev/md${MD}c
|
|
|
|
./newfs -R /dev/md${ME}c
|
|
|
|
if cmp /dev/md${MD}c /dev/md${ME}c ; then
|
|
|
|
echo "Test passed"
|
|
|
|
e=0
|
|
|
|
else
|
|
|
|
echo "Test failed"
|
|
|
|
e=1
|
|
|
|
fi
|
|
|
|
mdconfig -d -u $MD || true
|
|
|
|
mdconfig -d -u $ME || true
|
|
|
|
exit $e
|
|
|
|
|