Deleted Added
full compact
resize_test.sh (213171) resize_test.sh (213231)
1#! /bin/sh
2#
1#! /bin/sh
2#
3# $FreeBSD: head/tools/regression/geom_eli/resize.t 213171 2010-09-25 15:37:41Z pjd $
3# $FreeBSD: head/tools/regression/geom_eli/resize.t 213231 2010-09-27 21:10:37Z pjd $
4
5echo 1..27
6
7BLK=512
8BLKS_PER_MB=2048
9
10md=$(mdconfig -s40m) || exit 1
11unit=${md#md}

--- 108 unchanged lines hidden (view full) ---

120geli detach ${md}a.eli
121
122
123# Verify that the man page example works, changing ada0 to $md,
124# 1g to 20m, 2g to 30m and keyfile to tmp.key, and adding -B none
125# to geli init.
126
127gpart create -s GPT $md || echo -n "not "
4
5echo 1..27
6
7BLK=512
8BLKS_PER_MB=2048
9
10md=$(mdconfig -s40m) || exit 1
11unit=${md#md}

--- 108 unchanged lines hidden (view full) ---

120geli detach ${md}a.eli
121
122
123# Verify that the man page example works, changing ada0 to $md,
124# 1g to 20m, 2g to 30m and keyfile to tmp.key, and adding -B none
125# to geli init.
126
127gpart create -s GPT $md || echo -n "not "
128echo ok $i - "Installed an GPT on ${md}"
128echo ok $i - "Installed a GPT on ${md}"
129i=$((i + 1))
130gpart add -s 20m -t freebsd-ufs -i 1 $md || echo -n "not "
131echo ok $i - "Added a 20m partition in slot 1"
132i=$((i + 1))
133geli init -B none -K tmp.key -P ${md}p1 || echo -n "not "
134echo ok $i - "Initialised geli on ${md}p1"
135i=$((i + 1))
136gpart resize -s 30m -i 1 $md || echo -n "not "

--- 13 unchanged lines hidden ---
129i=$((i + 1))
130gpart add -s 20m -t freebsd-ufs -i 1 $md || echo -n "not "
131echo ok $i - "Added a 20m partition in slot 1"
132i=$((i + 1))
133geli init -B none -K tmp.key -P ${md}p1 || echo -n "not "
134echo ok $i - "Initialised geli on ${md}p1"
135i=$((i + 1))
136gpart resize -s 30m -i 1 $md || echo -n "not "

--- 13 unchanged lines hidden ---