diff options
author | Alan Somers <asomers@FreeBSD.org> | 2017-12-29 18:42:55 +0000 |
---|---|---|
committer | Alan Somers <asomers@FreeBSD.org> | 2017-12-29 18:42:55 +0000 |
commit | 3a8d2bd4a15604321c031469b375468f270ddbcb (patch) | |
tree | be7e4104c91f33aa3f90378e7964901d3f4a4268 /tests | |
parent | 610b95a1736ff8604547c3e15eb09fa129378b08 (diff) | |
download | src-3a8d2bd4a15604321c031469b375468f270ddbcb.tar.gz src-3a8d2bd4a15604321c031469b375468f270ddbcb.zip |
geli: fix the resize test on arm64
The resize test used bsdlabel(8), which is not available on all
architectures. Change it to use gpart(8) instead, which should be available
everywhere.
PR: 221763
Reported by: andrew
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=327353
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sys/geom/class/eli/resize_test.sh | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/tests/sys/geom/class/eli/resize_test.sh b/tests/sys/geom/class/eli/resize_test.sh index c71597116398..e5bec1a45ce7 100644 --- a/tests/sys/geom/class/eli/resize_test.sh +++ b/tests/sys/geom/class/eli/resize_test.sh @@ -25,17 +25,16 @@ fsck_md() } setsize() { - partszMB=$1 unitszMB=$2 + partszMB=$1 - { - echo a: $(($partszMB * $BLKS_PER_MB)) 0 4.2BSD 1024 8192 - echo c: $(($unitszMB * $BLKS_PER_MB)) 0 unused 0 0 - } | bsdlabel -R $md /dev/stdin + gpart resize -i 1 -s ${partszMB}m ${md} } # Initialise -setsize 10 40 || echo -n "not " +gpart create -s BSD ${md} +gpart add -t freebsd-ufs -s 10m ${md} +setsize 10 || echo -n "not " echo ok $i - "Sized ${md}a to 10m" i=$((i + 1)) @@ -63,7 +62,7 @@ geli detach ${md}a.eli || echo -n "not " echo ok $i - "Detached ${md}a.eli" i=$((i + 1)) -setsize 20 40 || echo -n "not " +setsize 20 || echo -n "not " echo ok $i - "Sized ${md}a to 20m" i=$((i + 1)) geli attach -pktmp.key ${md}a && echo -n "not " @@ -93,7 +92,7 @@ geli detach ${md}a.eli || echo -n "not " echo ok $i - "Detached ${md}a.eli" i=$((i + 1)) -setsize 30 40 || echo -n "not " +setsize 30 || echo -n "not " echo ok $i - "Sized ${md}a to 30m" i=$((i + 1)) |