Lines Matching refs:zpool

43 	zpool=$1
48 atf_check test -n "$zpool"
60 atf_check zpool create -R ${mnt} ${zpool} ${disk}
61 atf_check zfs create -o mountpoint=none ${zpool}/ROOT
63 ${zpool}/ROOT/default
67 zpool=$1
72 atf_check test -n "$zpool"
74 bectl_create_setup ${zpool} ${disk} ${mnt}
76 atf_check -o ignore bectl -r ${zpool}/ROOT mount default ${root}
79 ${zpool}/ROOT/default/usr
80 atf_check -o ignore bectl -r ${zpool}/ROOT umount default
85 zpool=$1
86 if [ -z "$zpool" ]; then
88 elif zpool get health ${zpool} >/dev/null 2>&1; then
89 zpool destroy -f ${zpool}
113 zpool=$(make_zpool_name)
117 bectl_create_setup ${zpool} ${disk} ${mount}
122 ${zpool}/ROOT/default/usr
126 bectl -r ${zpool}/ROOT create "foo bar"
130 atf_check bectl -r ${zpool}/ROOT create -e default default2
131 atf_check bectl -r ${zpool}/ROOT create default2@test_snap
132 atf_check bectl -r ${zpool}/ROOT create -e default2@test_snap default3
136 atf_check bectl -r ${zpool}/ROOT create -r -e default recursive
137 atf_check bectl -r ${zpool}/ROOT create -r recursive@test_snap
138 atf_check bectl -r ${zpool}/ROOT create -r -e recursive@test_snap recursive-snap
142 zfs list "${zpool}/ROOT/default2/usr"
144 zfs list "${zpool}/ROOT/default3/usr"
148 zfs list "${zpool}/ROOT/recursive/usr"
150 zfs list "${zpool}/ROOT/recursive-snap/usr"
177 zpool=$(make_zpool_name)
182 bectl_create_setup ${zpool} ${disk} ${mount}
183 atf_check bectl -r ${zpool}/ROOT create -e default default2
184 atf_check -o not-empty zfs get mountpoint ${zpool}/ROOT/default2
185 atf_check -e ignore bectl -r ${zpool}/ROOT destroy default2
186 atf_check -e not-empty -s not-exit:0 zfs get mountpoint ${zpool}/ROOT/default2
191 atf_check -o not-empty bectl -r ${zpool}/ROOT mount default ${root}
192 atf_check bectl -r ${zpool}/ROOT create -e default default3
193 atf_check bectl -r ${zpool}/ROOT destroy -o default3
194 atf_check bectl -r ${zpool}/ROOT unmount default
197 atf_check bectl -r ${zpool}/ROOT create -e default default2
198 atf_check bectl -r ${zpool}/ROOT create -e default default3
199 atf_check bectl -r ${zpool}/ROOT destroy default
200 atf_check bectl -r ${zpool}/ROOT destroy default2
201 atf_check bectl -r ${zpool}/ROOT rename default3 default
212 atf_check bectl -r ${zpool}/ROOT create -e default default2
214 atf_check bectl -r ${zpool}/ROOT create -e default2 default3
216 atf_check bectl -r ${zpool}/ROOT create -e default3 default4
217 atf_check bectl -r ${zpool}/ROOT destroy default3
218 atf_check bectl -r ${zpool}/ROOT destroy default2
219 atf_check bectl -r ${zpool}/ROOT destroy default4
226 atf_check bectl -r ${zpool}/ROOT create -e default default2
227 atf_check bectl -r ${zpool}/ROOT create default@test
229 atf_check bectl -r ${zpool}/ROOT destroy default@test
230 atf_check -o inline:"-\n" zfs get -Ho value origin ${zpool}/ROOT/default
231 atf_check bectl -r ${zpool}/ROOT destroy default2
235 atf_check bectl -r ${zpool}/ROOT create default@test
236 atf_check bectl -r ${zpool}/ROOT create -e default@test default2
238 atf_check -e not-empty -s not-exit:0 bectl -r ${zpool}/ROOT destroy \
267 zpool=$(make_zpool_name)
271 bectl_create_setup ${zpool} ${disk} ${mount}
272 atf_check -o save:exported bectl -r ${zpool}/ROOT export default
273 atf_check -x "bectl -r ${zpool}/ROOT import default2 < exported"
274 atf_check -o not-empty zfs get mountpoint ${zpool}/ROOT/default2
275 atf_check -e ignore bectl -r ${zpool}/ROOT destroy default2
277 ${zpool}/ROOT/default2
305 zpool=$(make_zpool_name)
309 bectl_create_setup ${zpool} ${disk} ${mount}
314 atf_check -o save:list.out bectl -r ${zpool}/ROOT list
316 atf_check bectl -r ${zpool}/ROOT create -e default default2
317 atf_check -o save:list.out bectl -r ${zpool}/ROOT list
319 atf_check -e ignore bectl -r ${zpool}/ROOT destroy default2
320 atf_check -o save:list.out bectl -r ${zpool}/ROOT list
350 zpool=$(make_zpool_name)
355 bectl_create_deep_setup ${zpool} ${disk} ${mount}
358 atf_check -o not-empty bectl -r ${zpool}/ROOT mount default ${root}
359 atf_check -o not-empty -x "mount | grep '^${zpool}/ROOT/default'"
360 atf_check bectl -r ${zpool}/ROOT unmount default
361 atf_check -s not-exit:0 -x "mount | grep '^${zpool}/ROOT/default'"
363 atf_check -o not-empty bectl -r ${zpool}/ROOT mount default ${root}
364 atf_check -o not-empty -x "mount | grep '^${zpool}/ROOT/default'"
365 atf_check bectl -r ${zpool}/ROOT umount default
366 atf_check -s not-exit:0 -x "mount | grep '^${zpool}/ROOT/default'"
394 zpool=$(make_zpool_name)
398 bectl_create_setup ${zpool} ${disk} ${mount}
399 atf_check bectl -r ${zpool}/ROOT rename default default2
400 atf_check -o not-empty zfs get mountpoint ${zpool}/ROOT/default2
402 ${zpool}/ROOT/default
431 zpool=$(make_zpool_name)
439 bectl_create_deep_setup ${zpool} ${disk} ${mount}
442 atf_check -o ignore bectl -r ${zpool}/ROOT mount default ${root}
445 atf_check bectl -r ${zpool}/ROOT umount default
448 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT create -e default target
449 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT create -e default 1234
454 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT jail -b 1234
455 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT unjail 1234
458 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT jail -b -o jid=233637 default
460 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT unjail default
463 atf_check -o inline:"rescue\nusr\n" bectl -r ${zpool}/ROOT \
465 atf_check -o inline:"rescue\nusr\n" bectl -r ${zpool}/ROOT \
468 atf_check bectl -r ${zpool}/ROOT ujail default
471 atf_check bectl -r ${zpool}/ROOT jail -bo path=${root} default
473 atf_check bectl -r ${zpool}/ROOT ujail default
476 atf_check bectl -r ${zpool}/ROOT jail -b default
477 atf_check bectl -r ${zpool}/ROOT unjail default
480 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT jail -b default
481 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT jail -b -o name=bectl_test target
482 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT unjail target
483 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT unjail default
485 atf_check -e ignore -s not-exit:0 bectl -r ${zpool}/ROOT ujail default
486 atf_check -e ignore -s not-exit:0 bectl -r ${zpool}/ROOT unjail default
489 atf_check bectl -r ${zpool}/ROOT jail -b -o path=${root} -u path default
492 atf_check bectl -r ${zpool}/ROOT ujail default
510 zpool=$(get_zpool_name)
513 mountpoint="$(bectl -r ${zpool}/ROOT list -H | grep ${bootenv} | awk '{print $3}')"
524 bectl_cleanup ${zpool}
546 zpool=$(make_zpool_name)
551 bectl_create_deep_setup ${zpool} ${disk} ${mount}
559 atf_check bectl -r ${zpool}/ROOT rename default A
561 atf_check bectl -r ${zpool}/ROOT create -r -e A B
563 atf_check bectl -r ${zpool}/ROOT create -r -e B C
566 atf_check -o not-inline:"-" zfs list -Hr -o origin ${zpool}/ROOT/C
572 atf_check -o not-empty bectl -r ${zpool}/ROOT activate C
573 atf_check -o inline:"-\n-\n" zfs list -Hr -o origin ${zpool}/ROOT/C