]> git.proxmox.com Git - mirror_zfs.git/blame - tests/zfs-tests/include/default.cfg.in
OpenZFS 7104 - increase indirect block size
[mirror_zfs.git] / tests / zfs-tests / include / default.cfg.in
CommitLineData
6bb24f4d
BB
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) 2016 by Delphix. All rights reserved.
29#
30
31. $STF_SUITE/include/commands.cfg
e6123796
JX
32
33# Common paths
34bindir=@bindir@
35sbindir=@sbindir@
36
37# ZFS Commands
38export ZDB=${ZDB:-${sbindir}/zdb}
39export ZFS=${ZFS:-${sbindir}/zfs}
40export ZHACK=${ZHACK:-${sbindir}/zhack}
41export ZINJECT=${ZINJECT:-${sbindir}/zinject}
42export ZPOOL=${ZPOOL:-${sbindir}/zpool}
43export ZTEST=${ZTEST:-${sbindir}/ztest}
44export ZPIOS=${ZPIOS:-${sbindir}/zpios}
ab9f4b0b 45export RAIDZ_TEST=${RAIDZ_TEST:-${bindir}/raidz_test}
70c7714d
GDN
46export ARC_SUMMARY=${ARC_SUMMARY:-${bindir}/arc_summary.py}
47export ARCSTAT=${ARCSTAT:-${bindir}/arcstat.py}
48export DBUFSTAT=${DBUFSTAT:-${bindir}/dbufstat.py}
e6123796 49
6bb24f4d
BB
50. $STF_SUITE/include/libtest.shlib
51
52# Optionally override the installed ZFS commands to run in-tree
9911a9c4
LH
53if [[ -f "$SRCDIR/zfs-script-config.sh" ]]; then
54 . $SRCDIR/zfs-script-config.sh
6bb24f4d
BB
55fi
56
57# Define run length constants
58export RT_LONG="3"
59export RT_MEDIUM="2"
60export RT_SHORT="1"
61
62# Define macro for zone test
63export ZONE_POOL="zonepool"
64export ZONE_CTR="zonectr"
65
6bb24f4d 66# Test Suite Specific Commands
e6123796 67helperdir=@datarootdir@/@PACKAGE@/zfs-tests/bin
6bb24f4d
BB
68export CHG_USR_EXEC=${CHG_USR_EXEC:-${helperdir}/chg_usr_exec}
69export DEVNAME2DEVID=${DEVNAME2DEVID:-${helperdir}/devname2devid}
70export DIR_RD_UPDATE=${DIR_RD_UPDATE:-${helperdir}/dir_rd_update}
71export FILE_CHECK=${FILE_CHECK:-${helperdir}/file_check}
72export FILE_TRUNC=${FILE_TRUNC:-${helperdir}/file_trunc}
73export FILE_WRITE=${FILE_WRITE:-${helperdir}/file_write}
74export LARGEST_FILE=${LARGEST_FILE:-${helperdir}/largest_file}
75export MKBUSY=${MKBUSY:-${helperdir}/mkbusy}
76export MKFILE=${MKFILE:-${helperdir}/mkfile}
77export MKFILES=${MKFILES:-${helperdir}/mkfiles}
78export MKTREE=${MKTREE:-${helperdir}/mktree}
79export MMAP_EXEC=${MMAP_EXEC:-${helperdir}/mmap_exec}
80export MMAPWRITE=${MMAPWRITE:-${helperdir}/mmapwrite}
81export RANDFREE_FILE=${RANDFREE_FILE:-${helperdir}/randfree_file}
82export READMMAP=${READMMAP:-${helperdir}/readmmap}
83export RENAME_DIR=${RENAME_DIR:-${helperdir}/rename_dir}
84export RM_LNKCNT_ZERO_FILE=${RM_LNKCNT_ZERO_FILE:-${helperdir}/rm_lnkcnt_zero_file}
85export THREADSAPPEND=${THREADSAPPEND:-${helperdir}/threadsappend}
50c957f7 86export XATTRTEST=${XATTRTEST:-${helperdir}/xattrtest}
6bb24f4d
BB
87
88# ensure we're running in the C locale, since
89# localised messages may result in test failures
90export LC_ALL="C"
91export LANG="C"
92
93#
94# pattern to ignore from 'zpool list'.
95#
96export NO_POOLS="no pools available"
97
98# pattern to ignore from 'zfs list'.
99export NO_DATASETS="no datasets available"
100
101export TEST_BASE_DIR="/var/tmp"
102
103# Default to compression ON
104export COMPRESSION_PROP=on
105
106# Default to using the checksum
107export CHECKSUM_PROP=on
108
109# some common variables used by test scripts :
679d73e9
JWK
110export FIO_SCRIPTS=$STF_SUITE/tests/perf/fio
111export PERF_SCRIPTS=$STF_SUITE/tests/perf/scripts
6bb24f4d
BB
112
113# some test pool names
114export TESTPOOL=testpool.$$
115export TESTPOOL1=testpool1.$$
116export TESTPOOL2=testpool2.$$
117export TESTPOOL3=testpool3.$$
679d73e9 118export PERFPOOL=perfpool
6bb24f4d
BB
119
120# some test file system names
121export TESTFS=testfs.$$
122export TESTFS1=testfs1.$$
123export TESTFS2=testfs2.$$
124export TESTFS3=testfs3.$$
125
126# some test directory names
127export TESTDIR=${TEST_BASE_DIR%%/}/testdir$$
128export TESTDIR0=${TEST_BASE_DIR%%/}/testdir0$$
129export TESTDIR1=${TEST_BASE_DIR%%/}/testdir1$$
130export TESTDIR2=${TEST_BASE_DIR%%/}/testdir2$$
131
132export ZFSROOT=
133
134export TESTSNAP=testsnap$$
135export TESTSNAP1=testsnap1$$
136export TESTSNAP2=testsnap2$$
137export TESTCLONE=testclone$$
138export TESTCLONE1=testclone1$$
139export TESTCLONE2=testclone2$$
140export TESTCLCT=testclct$$
141export TESTCTR=testctr$$
142export TESTCTR1=testctr1$$
143export TESTCTR2=testctr2$$
144export TESTVOL=testvol$$
145export TESTVOL1=testvol1$$
146export TESTVOL2=testvol2$$
147export TESTFILE0=testfile0.$$
148export TESTFILE1=testfile1.$$
149export TESTFILE2=testfile2.$$
aeacdefe 150export TESTBKMARK=testbkmark$$
6bb24f4d
BB
151
152export LONGPNAME="poolname50charslong_012345678901234567890123456789"
153export LONGFSNAME="fsysname50charslong_012345678901234567890123456789"
154export SNAPFS="$TESTPOOL/$TESTFS@$TESTSNAP"
155export SNAPFS1="$TESTPOOL/$TESTVOL@$TESTSNAP"
156
157export VOLSIZE=150m
158export BIGVOLSIZE=1eb
159
160# Default to limit disks to be checked
161export MAX_FINDDISKSNUM=6
162
d7958b4c
MA
163# Default minimum size for file based vdevs in the test suite
164export MINVDEVSIZE=$((256 * 1024 * 1024))
165
166# Minimum vdev size possible as defined in the OS
167export SPA_MINDEVSIZE=$((64 * 1024 * 1024))
168
6bb24f4d
BB
169# For iscsi target support
170export ISCSITGTFILE=/tmp/iscsitgt_file
171export ISCSITGT_FMRI=svc:/system/iscsitgt:default
172
173#
174# finally, if we're running in a local zone
175# we take some additional actions
176if ! is_global_zone; then
177 reexport_pool
178fi
179
180export ZFS_VERSION=5
181export ZFS_ALL_VERSIONS="1 2 3 4 5"
182
183for i in $ZFS_ALL_VERSIONS; do
184 eval 'export ZFS_VERSION_$i="v${i}-fs"'
185done
186
7050a65d
SV
187export MAX_PARTITIONS=8
188
6bb24f4d
BB
189if is_linux; then
190 unpack_opts="--sparse -xf"
191 pack_opts="--sparse -cf"
192 verbose=" -v"
193 unpack_preserve=" -xpf"
194 pack_preserve=" -cpf"
195
196 ZVOL_DEVDIR="/dev/zvol"
197 ZVOL_RDEVDIR="/dev/zvol"
6bb24f4d 198 DEV_RDSKDIR="/dev"
7050a65d 199 DEV_MPATHDIR="/dev/mapper"
6bb24f4d
BB
200
201 NEWFS_DEFAULT_FS="ext2"
202else
203 unpack_opts="xv"
204 pack_opts="cf"
205 verbose="v"
206 unpack_preserve="xpf"
207 pack_preserve="cpf"
208
209 ZVOL_DEVDIR="/dev/zvol/dsk"
210 ZVOL_RDEVDIR="/dev/zvol/rdsk"
211 DEV_DSKDIR="/dev/dsk"
212 DEV_RDSKDIR="/dev/rdsk"
213
214 NEWFS_DEFAULT_FS="ufs"
215fi
216export unpack_opts pack_opts verbose unpack_preserve pack_preserve \
7050a65d 217 ZVOL_DEVDIR ZVOL_RDEVDIR NEWFS_DEFAULT_FS DEV_RDSKDIR DEV_MPATHDIR