2005-12-07 00:37:14 +00:00

26 lines
364 B
Bash

#!/bin/sh
# $FreeBSD$
name="test"
base=`basename $0`
us=45
echo "1..1"
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 "ok 1"
else
echo "not ok 1"
fi
gnop destroy md${us}.nop
mdconfig -d -u $us