1#!/bin/sh 2 3dir=`dirname $0` 4. ${dir}/../../misc.sh 5 6echo "1..5" 7 8disks_create 2 9names_create 1 10 11expect_ok ${ZPOOL} create ${name0} ${disk0} 12exp=`( 13 echo "would update '${name0}' to the following configuration:" 14 echo " ${name0}" 15 echo " ${disk0}" 16 echo " ${disk1}" 17)` 18expect "${exp}" ${ZPOOL} add -n ${name0} ${disk1} 19exp=`( 20 echo " pool: ${name0}" 21 echo " state: ONLINE" 22 echo " scrub: none requested" 23 echo "config:" 24 echo " NAME STATE READ WRITE CKSUM" 25 echo " ${name0} ONLINE 0 0 0" 26 echo " ${disk0} ONLINE 0 0 0" 27 echo "errors: No known data errors" 28)` 29expect "${exp}" ${ZPOOL} status ${name0} 30expect_ok ${ZPOOL} destroy ${name0} 31expect_fl ${ZPOOL} status -x ${name0} 32 33disks_destroy 34