Deleted Added
sdiff udiff text old ( 153182 ) new ( 153186 )
full compact
1#!/bin/sh
2# $FreeBSD: head/tools/regression/geom_mirror/test-1.t 153186 2005-12-07 01:27:23Z pjd $
3
4. `dirname $0`/conf.sh
5
6echo "1..1"
7
8us0=45
9us1=`expr $us0 + 1`
10us2=`expr $us0 + 2`
11
12mdconfig -a -t malloc -s 1M -u $us0 || exit 1
13mdconfig -a -t malloc -s 2M -u $us1 || exit 1
14mdconfig -a -t malloc -s 3M -u $us2 || exit 1
15
16gmirror label $name /dev/md${us0} /dev/md${us1} /dev/md${us2} || exit 1
17devwait
18
19# Size of created device should be 1MB - 512b.
20
21size=`diskinfo /dev/mirror/${name} | awk '{print $3}'`
22
23if [ $size -eq 1048064 ]; then
24 echo "ok 1"
25else
26 echo "not ok 1"
27fi
28
29gmirror remove $name md${us0}
30gmirror remove $name md${us1}
31gmirror remove $name md${us2}
32mdconfig -d -u $us0
33mdconfig -d -u $us1
34mdconfig -d -u $us2