Force fault a vdev with 'zpool offline -f'
[zfs.git] / zfs-script-config.sh.in
blobdffab23efa97aa1a6f02f72c60a9110303ad6e3d
1 export KERNELSRC=@LINUX@
2 export KERNELBUILD=@LINUX_OBJ@
3 export KERNELSRCVER=@LINUX_VERSION@
4 export KERNELMOD=/lib/modules/${KERNELSRCVER}/kernel
6 export SPLSRC=@SPL@
7 export SPLBUILD=@SPL_OBJ@
8 export SPLSRCVER=@SPL_VERSION@
10 export SRCDIR=@abs_top_srcdir@
11 export BUILDDIR=@abs_top_builddir@
12 export LIBDIR=${BUILDDIR}/lib
13 export CMDDIR=${BUILDDIR}/cmd
14 export MODDIR=${BUILDDIR}/module
15 export SCRIPTDIR=${BUILDDIR}/scripts
16 export ZPOOLDIR=${BUILDDIR}/scripts/zpool-config
17 export ZPIOSDIR=${BUILDDIR}/scripts/zpios-test
18 export ZPIOSPROFILEDIR=${BUILDDIR}/scripts/zpios-profile
19 export ETCDIR=${SRCDIR}/etc
20 export TESTSDIR=${SRCDIR}/tests
21 export RUNFILEDIR=${TESTSDIR}/runfiles
22 export UDEVRULEDIR=${BUILDDIR}/udev/rules.d
23 export ZEDLETDIR=${SRCDIR}/cmd/zed/zed.d
24 export ZPOOLSCRIPTDIR=${SRCDIR}/cmd/zpool/zpool.d
26 export ZDB=${CMDDIR}/zdb/zdb
27 export ZFS=${CMDDIR}/zfs/zfs
28 export ZHACK=${CMDDIR}/zhack/zhack
29 export ZINJECT=${CMDDIR}/zinject/zinject
30 export ZPOOL=${CMDDIR}/zpool/zpool
31 export ZTEST=${CMDDIR}/ztest/ztest
32 export ZPIOS=${CMDDIR}/zpios/zpios
33 export RAIDZ_TEST=${CMDDIR}/raidz_test/raidz_test
34 export ARC_SUMMARY=${CMDDIR}/arc_summary/arc_summary.py
35 export ARCSTAT=${CMDDIR}/arcstat/arcstat.py
36 export DBUFSTAT=${CMDDIR}/dbufstat/dbufstat.py
37 export ZED=${CMDDIR}/zed/zed
39 export COMMON_SH=${SCRIPTDIR}/common.sh
40 export ZFS_SH=${SCRIPTDIR}/zfs.sh
41 export ZPOOL_CREATE_SH=${SCRIPTDIR}/zpool-create.sh
42 export ZPIOS_SH=${SCRIPTDIR}/zpios.sh
43 export ZPIOS_SURVEY_SH=${SCRIPTDIR}/zpios-survey.sh
45 # Test Suite Specific Commands
46 export NOINUSE_CHECK=1
47 export TEST_RUNNER=${TESTSDIR}/test-runner/cmd/test-runner.py
48 export STF_TOOLS=${TESTSDIR}/test-runner
49 export STF_SUITE=${TESTSDIR}/zfs-tests
51 export CHG_USR_EXEC=${TESTSDIR}/zfs-tests/cmd/chg_usr_exec/chg_usr_exec
52 export DEVNAME2DEVID=${TESTSDIR}/zfs-tests/cmd/devname2devid/devname2devid
53 export DIR_RD_UPDATE=${TESTSDIR}/zfs-tests/cmd/dir_rd_update/dir_rd_update
54 export FILE_CHECK=${TESTSDIR}/zfs-tests/cmd/file_check/file_check
55 export FILE_TRUNC=${TESTSDIR}/zfs-tests/cmd/file_trunc/file_trunc
56 export FILE_WRITE=${TESTSDIR}/zfs-tests/cmd/file_write/file_write
57 export LARGEST_FILE=${TESTSDIR}/zfs-tests/cmd/largest_file/largest_file
58 export MKBUSY=${TESTSDIR}/zfs-tests/cmd/mkbusy/mkbusy
59 export MKFILE=${TESTSDIR}/zfs-tests/cmd/mkfile/mkfile
60 export MKFILES=${TESTSDIR}/zfs-tests/cmd/mkfiles/mkfiles
61 export MKTREE=${TESTSDIR}/zfs-tests/cmd/mktree/mktree
62 export MMAP_EXEC=${TESTSDIR}/zfs-tests/cmd/mmap_exec/mmap_exec
63 export MMAPWRITE=${TESTSDIR}/zfs-tests/cmd/mmapwrite/mmapwrite
64 export RANDFREE_FILE=${TESTSDIR}/zfs-tests/cmd/randfree_file/randfree_file
65 export READMMAP=${TESTSDIR}/zfs-tests/cmd/readmmap/readmmap
66 export RENAME_DIR=${TESTSDIR}/zfs-tests/cmd/rename_dir/rename_dir
67 export RM_LNKCNT_ZERO_FILE=${TESTSDIR}/zfs-tests/cmd/rm_lnkcnt_zero_file/rm_lnkcnt_zero_file
68 export THREADSAPPEND=${TESTSDIR}/zfs-tests/cmd/threadsappend/threadsappend
69 export XATTRTEST=${TESTSDIR}/zfs-tests/cmd/xattrtest/xattrtest
71 export INTREE=1
72 export LDMOD=/sbin/insmod
73 export GDB="/usr/bin/libtool --mode=execute gdb"
75 export ZED_PIDFILE=@runstatedir@/zed.pid
77 export KERNEL_MODULES=( \
78 ${KERNELMOD}/lib/zlib_deflate/zlib_deflate.ko \
79 ${KERNELMOD}/lib/zlib_inflate/zlib_inflate.ko \
82 export SPL_MODULES=( \
83 ${SPLBUILD}/module/spl/spl.ko \
84 ${SPLBUILD}/module/splat/splat.ko \
87 export ZFS_MODULES=( \
88 ${MODDIR}/avl/zavl.ko \
89 ${MODDIR}/nvpair/znvpair.ko \
90 ${MODDIR}/unicode/zunicode.ko \
91 ${MODDIR}/zcommon/zcommon.ko \
92 ${MODDIR}/icp/icp.ko \
93 ${MODDIR}/zfs/zfs.ko \
96 export ZPIOS_MODULES=( \
97 ${MODDIR}/zpios/zpios.ko \
100 export MODULES=( \
101 ${SPL_MODULES[*]} \
102 ${ZFS_MODULES[*]} \