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, 2016 by Delphix. All rights reserved.
29 #
30
31 . $STF_SUITE/include/libtest.shlib
32
33 # Define run length constants
34 export RT_LONG="3"
35 export RT_MEDIUM="2"
36 export RT_SHORT="1"
37
38 # Define macro for zone test
39 export ZONE_POOL="zonepool"
40 export ZONE_CTR="zonectr"
41
42 # ensure we're running in the C locale, since
43 # localised messages may result in test failures
44 export LC_ALL="C"
45 export LANG="C"
46
47 #
48 # pattern to ignore from 'zpool list'.
102 export TESTCTR2=testctr2
103 export TESTVOL=testvol
104 export TESTVOL1=testvol1
105 export TESTVOL2=testvol2
106 export TESTFILE0=testfile0
107 export TESTFILE1=testfile1
108 export TESTFILE2=testfile2
109 export TESTBKMARK=testbkmark
110
111 export LONGPNAME="poolname50charslong_012345678901234567890123456789"
112 export LONGFSNAME="fsysname50charslong_012345678901234567890123456789"
113 export SNAPFS="$TESTPOOL/$TESTFS@$TESTSNAP"
114 export SNAPFS1="$TESTPOOL/$TESTVOL@$TESTSNAP"
115
116 export VOLSIZE=150m
117 export BIGVOLSIZE=1eb
118
119 # Default to limit disks to be checked
120 export MAX_FINDDISKSNUM=6
121
122 # Default minimum size for file based vdevs in the test suite
123 export MINVDEVSIZE=$((256 * 1024 * 1024))
124
125 # Minimum vdev size possible as defined in the OS
126 export SPA_MINDEVSIZE=$((64 * 1024 * 1024))
127
128 export AUTO_SNAP=$(svcs -a | grep auto-snapshot | grep online | awk \
129 '{print $3}')
130
131 # finally, if we're running in a local zone
132 # we take some additional actions
133 if ! is_global_zone; then
134 reexport_pool
135 fi
136
137 export ZFS_VERSION=5
138 export ZFS_ALL_VERSIONS="1 2 3 4 5"
139
140 for i in $ZFS_ALL_VERSIONS; do
141 eval 'export ZFS_VERSION_$i="v${i}-fs"'
|
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, 2016 by Delphix. All rights reserved.
29 # Copyright 2015 Nexenta Systems, Inc. All rights reserved.
30 #
31
32 . $STF_SUITE/include/libtest.shlib
33
34 # Define run length constants
35 export RT_LONG="3"
36 export RT_MEDIUM="2"
37 export RT_SHORT="1"
38
39 # Define macro for zone test
40 export ZONE_POOL="zonepool"
41 export ZONE_CTR="zonectr"
42
43 # ensure we're running in the C locale, since
44 # localised messages may result in test failures
45 export LC_ALL="C"
46 export LANG="C"
47
48 #
49 # pattern to ignore from 'zpool list'.
103 export TESTCTR2=testctr2
104 export TESTVOL=testvol
105 export TESTVOL1=testvol1
106 export TESTVOL2=testvol2
107 export TESTFILE0=testfile0
108 export TESTFILE1=testfile1
109 export TESTFILE2=testfile2
110 export TESTBKMARK=testbkmark
111
112 export LONGPNAME="poolname50charslong_012345678901234567890123456789"
113 export LONGFSNAME="fsysname50charslong_012345678901234567890123456789"
114 export SNAPFS="$TESTPOOL/$TESTFS@$TESTSNAP"
115 export SNAPFS1="$TESTPOOL/$TESTVOL@$TESTSNAP"
116
117 export VOLSIZE=150m
118 export BIGVOLSIZE=1eb
119
120 # Default to limit disks to be checked
121 export MAX_FINDDISKSNUM=6
122
123 # Default to determine the time to sleep before retrying a zpool destroy
124 export DESTROY_SLEEP_TIME=10
125
126 # Default to determine the time to sleep before retrying a zpool export
127 export EXPORT_SLEEP_TIME=10
128
129 # Default to determine the number of times to retry a command
130 export NUM_RETRIES=7
131
132 # Default minimum size for file based vdevs in the test suite
133 export MINVDEVSIZE=$((256 * 1024 * 1024))
134
135 # Minimum vdev size possible as defined in the OS
136 export SPA_MINDEVSIZE=$((64 * 1024 * 1024))
137
138 export AUTO_SNAP=$(svcs -a | grep auto-snapshot | grep online | awk \
139 '{print $3}')
140
141 # finally, if we're running in a local zone
142 # we take some additional actions
143 if ! is_global_zone; then
144 reexport_pool
145 fi
146
147 export ZFS_VERSION=5
148 export ZFS_ALL_VERSIONS="1 2 3 4 5"
149
150 for i in $ZFS_ALL_VERSIONS; do
151 eval 'export ZFS_VERSION_$i="v${i}-fs"'
|