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

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

113
114out=$(fsck -tufs -y ${md}a.eli)
115echo "$out" | fgrep -q MODIFIED && echo -n "not "
116echo ok $i - "fsck says ${md}a.eli is clean," $(echo $(echo "$out" | wc -l)) \
117 "lines of output"
118i=$((i + 1))
119
120geli detach ${md}a.eli
4
5echo 1..27
6
7BLK=512
8BLKS_PER_MB=2048
9
10md=$(mdconfig -s40m) || exit 1
11unit=${md#md}

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

113
114out=$(fsck -tufs -y ${md}a.eli)
115echo "$out" | fgrep -q MODIFIED && echo -n "not "
116echo ok $i - "fsck says ${md}a.eli is clean," $(echo $(echo "$out" | wc -l)) \
117 "lines of output"
118i=$((i + 1))
119
120geli detach ${md}a.eli
121gpart destroy -F $md >/dev/null
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 a GPT on ${md}"

--- 21 unchanged lines hidden ---
122
123
124# Verify that the man page example works, changing ada0 to $md,
125# 1g to 20m, 2g to 30m and keyfile to tmp.key, and adding -B none
126# to geli init.
127
128gpart create -s GPT $md || echo -n "not "
129echo ok $i - "Installed a GPT on ${md}"

--- 21 unchanged lines hidden ---