Lines Matching refs:zpool

22 	zpool=$1
27 atf_check test -n "$zpool"
39 atf_check zpool create -R ${mnt} ${zpool} ${disk}
40 atf_check zfs create -o mountpoint=none ${zpool}/ROOT
42 ${zpool}/ROOT/default
46 zpool=$1
51 atf_check test -n "$zpool"
53 bectl_create_setup ${zpool} ${disk} ${mnt}
55 atf_check -o ignore bectl -r ${zpool}/ROOT mount default ${root}
58 ${zpool}/ROOT/default/usr
59 atf_check -o ignore bectl -r ${zpool}/ROOT umount default
64 zpool=$1
65 if [ -z "$zpool" ]; then
67 elif zpool get health ${zpool} >/dev/null 2>&1; then
68 zpool destroy -f ${zpool}
91 zpool=$(make_zpool_name)
95 bectl_create_setup ${zpool} ${disk} ${mount}
100 ${zpool}/ROOT/default/usr
104 bectl -r ${zpool}/ROOT create "foo bar"
108 atf_check bectl -r ${zpool}/ROOT create -e default default2
109 atf_check bectl -r ${zpool}/ROOT create default2@test_snap
110 atf_check bectl -r ${zpool}/ROOT create -e default2@test_snap default3
114 atf_check bectl -r ${zpool}/ROOT create -r -e default recursive
115 atf_check bectl -r ${zpool}/ROOT create -r recursive@test_snap
116 atf_check bectl -r ${zpool}/ROOT create -r -e recursive@test_snap recursive-snap
120 zfs list "${zpool}/ROOT/default2/usr"
122 zfs list "${zpool}/ROOT/default3/usr"
126 zfs list "${zpool}/ROOT/recursive/usr"
128 zfs list "${zpool}/ROOT/recursive-snap/usr"
154 zpool=$(make_zpool_name)
159 bectl_create_setup ${zpool} ${disk} ${mount}
160 atf_check bectl -r ${zpool}/ROOT create -e default default2
161 atf_check -o not-empty zfs get mountpoint ${zpool}/ROOT/default2
162 atf_check -e ignore bectl -r ${zpool}/ROOT destroy default2
163 atf_check -e not-empty -s not-exit:0 zfs get mountpoint ${zpool}/ROOT/default2
168 atf_check -o not-empty bectl -r ${zpool}/ROOT mount default ${root}
169 atf_check bectl -r ${zpool}/ROOT create -e default default3
170 atf_check bectl -r ${zpool}/ROOT destroy -o default3
171 atf_check bectl -r ${zpool}/ROOT unmount default
174 atf_check bectl -r ${zpool}/ROOT create -e default default2
175 atf_check bectl -r ${zpool}/ROOT create -e default default3
176 atf_check bectl -r ${zpool}/ROOT destroy default
177 atf_check bectl -r ${zpool}/ROOT destroy default2
178 atf_check bectl -r ${zpool}/ROOT rename default3 default
189 atf_check bectl -r ${zpool}/ROOT create -e default default2
191 atf_check bectl -r ${zpool}/ROOT create -e default2 default3
193 atf_check bectl -r ${zpool}/ROOT create -e default3 default4
194 atf_check bectl -r ${zpool}/ROOT destroy default3
195 atf_check bectl -r ${zpool}/ROOT destroy default2
196 atf_check bectl -r ${zpool}/ROOT destroy default4
203 atf_check bectl -r ${zpool}/ROOT create -e default default2
204 atf_check bectl -r ${zpool}/ROOT create default@test
206 atf_check bectl -r ${zpool}/ROOT destroy default@test
207 atf_check -o inline:"-\n" zfs get -Ho value origin ${zpool}/ROOT/default
208 atf_check bectl -r ${zpool}/ROOT destroy default2
212 atf_check bectl -r ${zpool}/ROOT create default@test
213 atf_check bectl -r ${zpool}/ROOT create -e default@test default2
215 atf_check -e not-empty -s not-exit:0 bectl -r ${zpool}/ROOT destroy \
242 zpool=$(make_zpool_name)
246 bectl_create_setup ${zpool} ${disk} ${mount}
247 atf_check -o save:exported bectl -r ${zpool}/ROOT export default
248 atf_check -x "bectl -r ${zpool}/ROOT import default2 < exported"
249 atf_check -o not-empty zfs get mountpoint ${zpool}/ROOT/default2
250 atf_check -e ignore bectl -r ${zpool}/ROOT destroy default2
252 ${zpool}/ROOT/default2
278 zpool=$(make_zpool_name)
282 bectl_create_setup ${zpool} ${disk} ${mount}
287 atf_check -o save:list.out bectl -r ${zpool}/ROOT list
289 atf_check bectl -r ${zpool}/ROOT create -e default default2
290 atf_check -o save:list.out bectl -r ${zpool}/ROOT list
292 atf_check -e ignore bectl -r ${zpool}/ROOT destroy default2
293 atf_check -o save:list.out bectl -r ${zpool}/ROOT list
321 zpool=$(make_zpool_name)
326 bectl_create_deep_setup ${zpool} ${disk} ${mount}
329 atf_check -o not-empty bectl -r ${zpool}/ROOT mount default ${root}
330 atf_check -o not-empty -x "mount | grep '^${zpool}/ROOT/default'"
331 atf_check bectl -r ${zpool}/ROOT unmount default
332 atf_check -s not-exit:0 -x "mount | grep '^${zpool}/ROOT/default'"
334 atf_check -o not-empty bectl -r ${zpool}/ROOT mount default ${root}
335 atf_check -o not-empty -x "mount | grep '^${zpool}/ROOT/default'"
336 atf_check bectl -r ${zpool}/ROOT umount default
337 atf_check -s not-exit:0 -x "mount | grep '^${zpool}/ROOT/default'"
363 zpool=$(make_zpool_name)
367 bectl_create_setup ${zpool} ${disk} ${mount}
368 atf_check bectl -r ${zpool}/ROOT rename default default2
369 atf_check -o not-empty zfs get mountpoint ${zpool}/ROOT/default2
371 ${zpool}/ROOT/default
398 zpool=$(make_zpool_name)
406 bectl_create_deep_setup ${zpool} ${disk} ${mount}
409 atf_check -o ignore bectl -r ${zpool}/ROOT mount default ${root}
412 atf_check bectl -r ${zpool}/ROOT umount default
415 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT create -e default target
416 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT create -e default 1234
421 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT jail -b 1234
422 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT unjail 1234
425 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT jail -b -o jid=233637 default
427 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT unjail default
430 atf_check -o inline:"rescue\nusr\n" bectl -r ${zpool}/ROOT \
432 atf_check -o inline:"rescue\nusr\n" bectl -r ${zpool}/ROOT \
435 atf_check bectl -r ${zpool}/ROOT ujail default
438 atf_check bectl -r ${zpool}/ROOT jail -bo path=${root} default
440 atf_check bectl -r ${zpool}/ROOT ujail default
443 atf_check bectl -r ${zpool}/ROOT jail -b default
444 atf_check bectl -r ${zpool}/ROOT unjail default
447 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT jail -b default
448 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT jail -b -o name=bectl_test target
449 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT unjail target
450 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT unjail default
452 atf_check -e ignore -s not-exit:0 bectl -r ${zpool}/ROOT ujail default
453 atf_check -e ignore -s not-exit:0 bectl -r ${zpool}/ROOT unjail default
456 atf_check bectl -r ${zpool}/ROOT jail -b -o path=${root} -u path default
459 atf_check bectl -r ${zpool}/ROOT ujail default
477 zpool=$(get_zpool_name)
480 mountpoint="$(bectl -r ${zpool}/ROOT list -H | grep ${bootenv} | awk '{print $3}')"
491 bectl_cleanup ${zpool}
513 zpool=$(make_zpool_name)
518 bectl_create_deep_setup ${zpool} ${disk} ${mount}
526 atf_check bectl -r ${zpool}/ROOT rename default A
528 atf_check bectl -r ${zpool}/ROOT create -r -e A B
530 atf_check bectl -r ${zpool}/ROOT create -r -e B C
533 atf_check -o not-inline:"-" zfs list -Hr -o origin ${zpool}/ROOT/C
539 atf_check -o not-empty bectl -r ${zpool}/ROOT activate C
540 atf_check -o inline:"-\n-\n" zfs list -Hr -o origin ${zpool}/ROOT/C
566 zpool=$(make_zpool_name)
573 bectl_create_setup ${zpool} ${disk} ${mount}
574 atf_check -s exit:0 -o empty bectl -r ${zpool}/ROOT create -e default ${be}
577 atf_check -s exit:0 -o ignore bectl -r ${zpool}/ROOT activate -t ${be}
578 atf_check -s exit:0 -o inline:"zfs:${zpool}/ROOT/${be}:\n" zfsbootcfg -z ${zpool}
581 atf_check -s exit:0 -o ignore bectl -r ${zpool}/ROOT destroy ${be}
584 atf_check -s exit:0 -o empty zfsbootcfg -z ${zpool}
610 zpool=$(make_zpool_name)
617 bectl_create_setup ${zpool} ${disk} ${mount}
618 atf_check -s exit:0 -o empty bectl -r ${zpool}/ROOT create -e default ${be}
621 atf_check -s exit:0 -o ignore bectl -r ${zpool}/ROOT activate -t ${be}
622 atf_check -s exit:0 -o inline:"zfs:${zpool}/ROOT/${be}:\n" zfsbootcfg -z ${zpool}
625 atf_check -s exit:0 -o ignore bectl -r ${zpool}/ROOT rename ${be} ${be}_renamed
628 atf_check -s exit:0 -o inline:"zfs:${zpool}/ROOT/${be}_renamed:\n" zfsbootcfg -z ${zpool}