11ba4a712SPawel Jakub Dawidek#!/bin/sh 21ba4a712SPawel Jakub Dawidek 31ba4a712SPawel Jakub Dawidekdir=`dirname $0` 41ba4a712SPawel Jakub Dawidek. ${dir}/../../misc.sh 51ba4a712SPawel Jakub Dawidek 61ba4a712SPawel Jakub Dawidekecho "1..5" 71ba4a712SPawel Jakub Dawidek 81ba4a712SPawel Jakub Dawidekdisks_create 1 91ba4a712SPawel Jakub Dawideknames_create 1 101ba4a712SPawel Jakub Dawidek 111ba4a712SPawel Jakub Dawidekexpect_fl is_mountpoint /${name0} 121ba4a712SPawel Jakub Dawidekexp=`( 131ba4a712SPawel Jakub Dawidek echo "would create '${name0}' with the following layout:" 141ba4a712SPawel Jakub Dawidek echo " ${name0}" 151ba4a712SPawel Jakub Dawidek echo " ${disk0}" 161ba4a712SPawel Jakub Dawidek)` 171ba4a712SPawel Jakub Dawidekexpect "${exp}" ${ZPOOL} create -n ${name0} ${disk0} 181ba4a712SPawel Jakub Dawidekexpect_fl is_mountpoint /${name0} 191ba4a712SPawel Jakub Dawidekexpect_fl ${ZPOOL} status -x ${name0} 201ba4a712SPawel Jakub Dawidekexpect_fl ${ZPOOL} destroy ${name0} 211ba4a712SPawel Jakub Dawidek 221ba4a712SPawel Jakub Dawidekdisks_destroy 23