freebsd-dev/tools/regression/geom_nop/test-1.sh
Pawel Jakub Dawidek c4db6df027 Add regression tests for geom_stripe and geom_nop.
Supported by:	Wheel - Open Technologies - http://www.wheel.pl
2004-05-22 10:58:53 +00:00

24 lines
347 B
Bash

#!/bin/sh
# $FreeBSD$
name="test"
base=`basename $0`
us=45
mdconfig -a -t malloc -s 1M -u $us || exit 1
gnop create /dev/md${us} || exit 1
# Size of created device should be 1MB.
size=`diskinfo /dev/md${us}.nop | awk '{print $3}'`
if [ $size -eq 1048576 ]; then
echo "PASS"
else
echo "FAIL"
fi
gnop destroy md${us}.nop
mdconfig -d -u $us