OpenZFS 7745 - print error if lzc_* is called before libzfs_core_init
[zfs.git] / zfs-script-config.sh.in
blobd1ba71d7641b45ee6c820e52bd6b44cf9d391423
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
24 export ZDB=${CMDDIR}/zdb/zdb
25 export ZFS=${CMDDIR}/zfs/zfs
26 export ZHACK=${CMDDIR}/zhack/zhack
27 export ZINJECT=${CMDDIR}/zinject/zinject
28 export ZPOOL=${CMDDIR}/zpool/zpool
29 export ZTEST=${CMDDIR}/ztest/ztest
30 export ZPIOS=${CMDDIR}/zpios/zpios
31 export RAIDZ_TEST=${CMDDIR}/raidz_test/raidz_test
32 export ARC_SUMMARY=${CMDDIR}/arc_summary/arc_summary.py
33 export ARCSTAT=${CMDDIR}/arcstat/arcstat.py
34 export DBUFSTAT=${CMDDIR}/dbufstat/dbufstat.py
36 export COMMON_SH=${SCRIPTDIR}/common.sh
37 export ZFS_SH=${SCRIPTDIR}/zfs.sh
38 export ZPOOL_CREATE_SH=${SCRIPTDIR}/zpool-create.sh
39 export ZPIOS_SH=${SCRIPTDIR}/zpios.sh
40 export ZPIOS_SURVEY_SH=${SCRIPTDIR}/zpios-survey.sh
42 # Test Suite Specific Commands
43 export TEST_RUNNER=${TESTSDIR}/test-runner/cmd/test-runner.py
44 export STF_TOOLS=${TESTSDIR}/test-runner
45 export STF_SUITE=${TESTSDIR}/zfs-tests
47 export CHG_USR_EXEC=${TESTSDIR}/zfs-tests/cmd/chg_usr_exec/chg_usr_exec
48 export DEVNAME2DEVID=${TESTSDIR}/zfs-tests/cmd/devname2devid/devname2devid
49 export DIR_RD_UPDATE=${TESTSDIR}/zfs-tests/cmd/dir_rd_update/dir_rd_update
50 export FILE_CHECK=${TESTSDIR}/zfs-tests/cmd/file_check/file_check
51 export FILE_TRUNC=${TESTSDIR}/zfs-tests/cmd/file_trunc/file_trunc
52 export FILE_WRITE=${TESTSDIR}/zfs-tests/cmd/file_write/file_write
53 export LARGEST_FILE=${TESTSDIR}/zfs-tests/cmd/largest_file/largest_file
54 export MKBUSY=${TESTSDIR}/zfs-tests/cmd/mkbusy/mkbusy
55 export MKFILE=${TESTSDIR}/zfs-tests/cmd/mkfile/mkfile
56 export MKFILES=${TESTSDIR}/zfs-tests/cmd/mkfiles/mkfiles
57 export MKTREE=${TESTSDIR}/zfs-tests/cmd/mktree/mktree
58 export MMAP_EXEC=${TESTSDIR}/zfs-tests/cmd/mmap_exec/mmap_exec
59 export MMAPWRITE=${TESTSDIR}/zfs-tests/cmd/mmapwrite/mmapwrite
60 export RANDFREE_FILE=${TESTSDIR}/zfs-tests/cmd/randfree_file/randfree_file
61 export READMMAP=${TESTSDIR}/zfs-tests/cmd/readmmap/readmmap
62 export RENAME_DIR=${TESTSDIR}/zfs-tests/cmd/rename_dir/rename_dir
63 export RM_LNKCNT_ZERO_FILE=${TESTSDIR}/zfs-tests/cmd/rm_lnkcnt_zero_file/rm_lnkcnt_zero_file
64 export THREADSAPPEND=${TESTSDIR}/zfs-tests/cmd/threadsappend/threadsappend
65 export XATTRTEST=${TESTSDIR}/zfs-tests/cmd/xattrtest/xattrtest
67 export INTREE=1
68 export LDMOD=/sbin/insmod
69 export GDB="/usr/bin/libtool --mode=execute gdb"
71 export ZED_PIDFILE=@runstatedir@/zed.pid
73 export KERNEL_MODULES=( \
74 ${KERNELMOD}/lib/zlib_deflate/zlib_deflate.ko \
75 ${KERNELMOD}/lib/zlib_inflate/zlib_inflate.ko \
78 export SPL_MODULES=( \
79 ${SPLBUILD}/module/spl/spl.ko \
80 ${SPLBUILD}/module/splat/splat.ko \
83 export ZFS_MODULES=( \
84 ${MODDIR}/avl/zavl.ko \
85 ${MODDIR}/nvpair/znvpair.ko \
86 ${MODDIR}/unicode/zunicode.ko \
87 ${MODDIR}/zcommon/zcommon.ko \
88 ${MODDIR}/icp/icp.ko \
89 ${MODDIR}/zfs/zfs.ko \
92 export ZPIOS_MODULES=( \
93 ${MODDIR}/zpios/zpios.ko \
96 export MODULES=( \
97 ${SPL_MODULES[*]} \
98 ${ZFS_MODULES[*]} \