1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21 22# 23# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26 27# 28# Copyright (c) 2012 by Delphix. All rights reserved. 29# 30 31export DISK_ARRAY_NUM=0 32export DISK_ARRAY_LIMIT=4 33export DISKSARRAY="" 34 35# 36# Variables for zpool_add_006 37# 38export STF_TIMEOUT=2400 39export VDEVS_NUM=300 40export FILE_SIZE=100 #100mb 41 42function set_disks 43{ 44 set -A disk_array $(find_disks $DISKS) 45 46 if (( ${#disk_array[*]} <= 1 )); then 47 export DISK=${DISKS%% *} 48 else 49 export DISK="" 50 typeset -i i=0 51 while (( i < ${#disk_array[*]} )); do 52 export DISK${i}="${disk_array[$i]}" 53 DISKSARRAY="$DISKSARRAY ${disk_array[$i]}" 54 (( i = i + 1 )) 55 (( i>$DISK_ARRAY_LIMIT )) && break 56 done 57 export DISK_ARRAY_NUM=$i 58 export DISKSARRAY 59 fi 60 61 if (( $DISK_ARRAY_NUM == 0 )); then 62 export disk=$DISK 63 else 64 export disk=$DISK0 65 fi 66 67} 68 69set_disks 70 71export FILESIZE="100m" 72export FILESIZE1="150m" 73export SIZE="150m" 74export SIZE1="250m" 75export SLICE0=0 76export SLICE1=1 77export SLICE2=2 78export SLICE3=3 79export SLICE4=4 80export SLICE5=5 81export SLICE6=6 82export SLICE7=7 83 84export FILEDISK=filedisk.zpool_add 85export FILEDISK0=filedisk0.zpool_add 86export FILEDISK1=filedisk1.zpool_add 87export FILEDISK2=filedisk2.zpool_add 88export FILEDISK3=filedisk3.zpool_add 89 90export VOLSIZE=64mb 91 92export BYND_MAX_NAME="byondmaxnamelength\ 93012345678901234567890123456789\ 94012345678901234567890123456789\ 95012345678901234567890123456789\ 96012345678901234567890123456789\ 97012345678901234567890123456789\ 98012345678901234567890123456789\ 99012345678901234567890123456789\ 100012345678901234567890123456789" 101