1# vim: filetype=sh 2 3. ${STF_SUITE}/include/libtest.kshlib 4. ${STF_SUITE}/include/commands.cfg 5 6# Environment-dependent constants. 7for d in `geom disk list | awk '/Name:/ {print $3}'`; do 8 # Clear the GPT label first to avoid spurious create failures. 9 gpart destroy -F $d >/dev/null 2>&1 10 if gpart create -s gpt $d >/dev/null 2>&1 ; then 11 gpart destroy $d >/dev/null 2>&1 || continue 12 DISKS=("${DISKS[@]}" "/dev/$d") #"$DISKS $d" 13 fi 14 # Don't bother testing any more if we have enough already. 15 # Currently we use at most 5 disks plus 1 for temporary disks. 16 [ ${#DISKS[@]} -eq 6 ] && break 17done 18export KEEP="$(zpool list -H -o name)" 19 20# Pull in constants. 21. ${STF_SUITE}/include/constants.cfg 22