xref: /illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_create/zpool_create.cfg (revision b6805bf78d2bbbeeaea8909a05623587b42d58b3)
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
31. $STF_SUITE/include/libtest.shlib
32
33export DISK_ARRAY_NUM=0
34export DISK_ARRAY_LIMIT=4
35export DISKSARRAY=""
36
37#
38# Variables for zpool_create_005
39#
40export VDEVS_NUM=300
41export FILE_SIZE=100 #100mb
42export MD_OVERHEAD=10 # 10%
43export POOL_MINSIZE=64  # the minimum size(64m) to create a storage pool
44
45function set_disks
46{
47        typeset -a disk_array=($(find_disks $DISKS))
48
49	if (( ${#disk_array[*]} <= 1 )); then
50		export DISK=${DISKS%% *}
51	else
52		export DISK=""
53		typeset -i i=0
54		while (( i < ${#disk_array[*]} )); do
55			export DISK${i}="${disk_array[$i]}"
56			DISKSARRAY="$DISKSARRAY ${disk_array[$i]}"
57			(( i = i + 1 ))
58			(( i>$DISK_ARRAY_LIMIT )) && break
59		done
60		export DISK_ARRAY_NUM=$i
61		export DISKSARRAY
62	fi
63}
64
65set_disks
66
67export FILESIZE="100m"
68export FILESIZE1="150m"
69export SIZE="200m"
70export SIZE1="250m"
71export SLICE0=0
72export SLICE1=1
73export SLICE2=2
74export SLICE3=3
75export SLICE4=4
76export SLICE5=5
77export SLICE6=6
78export SLICE7=7
79
80export FILEDISK=filedisk_create
81export FILEDISK0=filedisk0_create
82export FILEDISK1=filedisk1_create
83export FILEDISK2=filedisk2_create
84export FILEDISK3=filedisk3_create
85
86export BYND_MAX_NAME="byondmaxnamelength\
87012345678901234567890123456789\
88012345678901234567890123456789\
89012345678901234567890123456789\
90012345678901234567890123456789\
91012345678901234567890123456789\
92012345678901234567890123456789\
93012345678901234567890123456789\
94012345678901234567890123456789"
95
96export TOOSMALL="toosmall"
97
98export TESTPOOL4=testpool4.create
99export TESTPOOL5=testpool5.create
100export TESTPOOL6=testpool6.create
101
102export CPATH="/var/tmp/cachefile.create"
103