Lines Matching refs:md

10 md=$(mdconfig -s40m) || exit 1
11 unit=${md#md}
20 } | disklabel -R $md /dev/stdin
28 echo ok $i - "Sized ${md}a to 10m"
32 geli init -Bnone -PKtmp.key ${md}a || echo -n "not "
33 echo ok $i - "Initialised geli on ${md}a"
35 geli attach -pk tmp.key ${md}a || echo -n "not "
36 echo ok $i - "Attached ${md}a as ${md}a.eli"
39 newfs -U ${md}a.eli >/dev/null || echo -n "not "
40 echo ok $i - "Initialised the filesystem on ${md}a.eli"
42 out=$(fsck -tufs -y ${md}a.eli)
44 echo ok $i - "fsck says ${md}a.eli is clean," $(echo $(echo "$out" | wc -l)) \
52 geli backup ${md}a tmp.meta || echo -n "not "
53 echo ok $i - "Backed up ${md}a metadata"
56 geli detach ${md}a.eli || echo -n "not "
57 echo ok $i - "Detached ${md}a.eli"
61 echo ok $i - "Sized ${md}a to 20m"
63 geli attach -pktmp.key ${md}a && echo -n "not "
64 echo ok $i - "Attaching ${md}a fails after resizing the consumer"
67 geli restore tmp.meta ${md}a && echo -n "not "
68 echo ok $i - "Restoring metadata on ${md}a.eli fails without -f"
70 geli restore -f tmp.meta ${md}a || echo -n "not "
71 echo ok $i - "Restoring metadata on ${md}a.eli can be forced"
74 geli attach -pktmp.key ${md}a || echo -n "not "
75 echo ok $i - "Attaching ${md}a is now possible"
78 growfs -y ${md}a.eli >/dev/null || echo -n "not "
79 echo ok $i - "Extended the filesystem on ${md}a.eli"
82 out=$(fsck -tufs -y ${md}a.eli)
84 echo ok $i - "fsck says ${md}a.eli is clean," $(echo $(echo "$out" | wc -l)) \
91 geli detach ${md}a.eli || echo -n "not "
92 echo ok $i - "Detached ${md}a.eli"
96 echo ok $i - "Sized ${md}a to 30m"
99 geli resize -s20m ${md}a || echo -n "not "
102 geli resize -s20m ${md}a && echo -n "not "
106 geli attach -pktmp.key ${md}a || echo -n "not "
107 echo ok $i - "Attaching ${md}a works ok"
110 growfs -y ${md}a.eli >/dev/null || echo -n "not "
111 echo ok $i - "Extended the filesystem on ${md}a.eli"
114 out=$(fsck -tufs -y ${md}a.eli)
116 echo ok $i - "fsck says ${md}a.eli is clean," $(echo $(echo "$out" | wc -l)) \
120 geli detach ${md}a.eli
121 gpart destroy -F $md >/dev/null
124 # Verify that the man page example works, changing ada0 to $md,
128 gpart create -s GPT $md || echo -n "not "
129 echo ok $i - "Installed a GPT on ${md}"
131 gpart add -s 20m -t freebsd-ufs -i 1 $md || echo -n "not "
134 geli init -B none -K tmp.key -P ${md}p1 || echo -n "not "
135 echo ok $i - "Initialised geli on ${md}p1"
137 gpart resize -s 30m -i 1 $md || echo -n "not "
138 echo ok $i - "Resized partition ${md}p1 to 30m"
140 geli resize -s 20m ${md}p1 || echo -n "not "
141 echo ok $i - "Resized geli on ${md}p1 to 30m"
143 geli attach -k tmp.key -p ${md}p1 || echo -n "not "
144 echo ok $i - "Attached ${md}p1.eli"
147 geli detach ${md}p1.eli