nokey_test.sh (182452) | nokey_test.sh (293436) |
---|---|
1#!/bin/sh | 1#!/bin/sh |
2# $FreeBSD: head/tools/regression/geom_eli/nokey.t 182452 2008-08-29 18:10:18Z pjd $ | 2# $FreeBSD: head/tools/regression/geom_eli/nokey.t 293436 2016-01-08 19:38:59Z ngie $ |
3 | 3 |
4. $(dirname $0)/conf.sh 5 |
|
4base=`basename $0` | 6base=`basename $0` |
5no=45 | |
6sectors=100 | 7sectors=100 |
7keyfile=`mktemp /tmp/$base.XXXXXX` || exit 1 | 8keyfile=`mktemp $base.XXXXXX` || exit 1 |
8mdconfig -a -t malloc -s `expr $sectors + 1` -u $no || exit 1 9 10echo "1..8" 11 12geli init -B none -P md${no} 2>/dev/null 13if [ $? -ne 0 ]; then 14 echo "ok 1" 15else --- 40 unchanged lines hidden (view full) --- 56fi 57geli setkey -n 0 -p -k ${keyfile} -P md${no} 2>/dev/null 58if [ $? -ne 0 ]; then 59 echo "ok 8" 60else 61 echo "not ok 8" 62fi 63 | 9mdconfig -a -t malloc -s `expr $sectors + 1` -u $no || exit 1 10 11echo "1..8" 12 13geli init -B none -P md${no} 2>/dev/null 14if [ $? -ne 0 ]; then 15 echo "ok 1" 16else --- 40 unchanged lines hidden (view full) --- 57fi 58geli setkey -n 0 -p -k ${keyfile} -P md${no} 2>/dev/null 59if [ $? -ne 0 ]; then 60 echo "ok 8" 61else 62 echo "not ok 8" 63fi 64 |
64mdconfig -d -u $no | |
65rm -f $keyfile | 65rm -f $keyfile |