Pass read/write CRx registers to userspace
[freebsd-src/fkvm-freebsd.git] / tools / regression / geom_eli / init-i-P.t
bloba06f9f8165cdc581966359f64afa23ac8031ddda
1 #!/bin/sh
2 # $FreeBSD$
4 base=`basename $0`
5 no=45
6 sectors=100
7 keyfile=`mktemp /tmp/$base.XXXXXX` || exit 1
8 mdconfig -a -t malloc -s `expr $sectors + 1` -u $no || exit 1
10 echo "1..1"
12 dd if=/dev/random of=${keyfile} bs=512 count=16 >/dev/null 2>&1
14 geli init -B none -i 64 -P -K ${keyfile} md${no} 2>/dev/null
15 if [ $? -ne 0 ]; then
16 echo "ok 1"
17 else
18 echo "not ok 1"
21 mdconfig -d -u $no
22 rm -f $keyfile