1#!/bin/sh 2# $FreeBSD$ 3 4dir=`dirname $0` 5. ${dir}/../../misc.sh 6 7echo "1..9" 8 9disks_create 1 10names_create 2 11 12expect_fl is_mountpoint /${name0} 13expect_fl is_mountpoint /${name1} 14expect_ok ${ZPOOL} create -R /${name1} ${name0} ${disk0} 15exp=`( 16 echo "NAME PROPERTY VALUE SOURCE" 17 echo "${name0} altroot /${name1} local" 18)` 19expect "${exp}" ${ZPOOL} get altroot ${name0} 20expect_fl is_mountpoint /${name0} 21if [ -z "${no_mountpoint}" ]; then 22 expect_ok is_mountpoint /${name1} 23else 24 expect_fl is_mountpoint /${name1} 25fi 26expect_ok ${ZPOOL} destroy ${name0} 27expect_fl is_mountpoint /${name0} 28expect_fl is_mountpoint /${name1} 29 30disks_destroy 31