summaryrefslogtreecommitdiffstats
path: root/sbin/geom/class/tests/eli/resize_test.sh
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-11-25 03:46:49 +0000
committerngie <ngie@FreeBSD.org>2015-11-25 03:46:49 +0000
commitc11080c84d6759760b0035a4ddcd1d144346b6ad (patch)
tree36c1ce63fe2fb2b24df071cd4e8cdb85912a89af /sbin/geom/class/tests/eli/resize_test.sh
parent6bec2d835922511b32421fa8066a23f324c0cc1b (diff)
downloadFreeBSD-src-c11080c84d6759760b0035a4ddcd1d144346b6ad.zip
FreeBSD-src-c11080c84d6759760b0035a4ddcd1d144346b6ad.tar.gz
Probe for the first available md unit number instead of hardcoding 45
Detach/mdconfig -d -u at the end of the test consistently
Diffstat (limited to 'sbin/geom/class/tests/eli/resize_test.sh')
-rwxr-xr-xsbin/geom/class/tests/eli/resize_test.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/sbin/geom/class/tests/eli/resize_test.sh b/sbin/geom/class/tests/eli/resize_test.sh
index 86ee364..67d6291 100755
--- a/sbin/geom/class/tests/eli/resize_test.sh
+++ b/sbin/geom/class/tests/eli/resize_test.sh
@@ -1,7 +1,8 @@
-#! /bin/sh
-#
+#!/bin/sh
# $FreeBSD$
+. $(dirname $0)/conf.sh
+
echo 1..27
BLK=512
@@ -22,8 +23,6 @@ setsize() {
# Initialise
-kldload geom_eli >/dev/null 2>&1
-
setsize 10 40 || echo -n "not "
echo ok $i - "Sized ${md}a to 10m"
i=$((i + 1))
@@ -145,6 +144,5 @@ echo ok $i - "Attached ${md}p1.eli"
i=$((i + 1))
geli detach ${md}p1.eli
-mdconfig -du$unit
rm tmp.*
OpenPOWER on IntegriCloud