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 https://opensource.org/licenses/CDDL-1.0.
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
33export DISK=${DISKS%% *}
34export FS_SIZE="$((($MINVDEVSIZE / (1024 * 1024)) * 32))m"
35export FILE_SIZE="$((MINVDEVSIZE))"
36export SLICE_SIZE="$((($MINVDEVSIZE / (1024 * 1024)) * 2))m"
37export MAX_NUM=6
38export DEVICE_DIR=$TEST_BASE_DIR/dev_import-test
39export BACKUP_DEVICE_DIR=$TEST_BASE_DIR/bakdev_import-test
40export DEVICE_FILE=disk
41export DEVICE_ARCHIVE=archive_import-test
42export MYTESTFILE=$STF_SUITE/include/libtest.shlib
43
44export CPATH=$TEST_BASE_DIR/cachefile.$$
45export CPATHBKP=$TEST_BASE_DIR/cachefile.$$.bkp
46export CPATHBKP2=$TEST_BASE_DIR/cachefile.$$.bkp2
47export MD5FILE=$TEST_BASE_DIR/md5sums.$$
48export MD5FILE2=$TEST_BASE_DIR/md5sums.$$.2
49
50export GROUP_NUM=3
51typeset -i num=0
52while (( num < $GROUP_NUM )); do
53	DEVICE_FILES="$DEVICE_FILES ${DEVICE_DIR}/${DEVICE_FILE}$num"
54	(( num = num + 1 ))
55done
56export DEVICE_FILES
57
58export VDEV0=$DEVICE_DIR/${DEVICE_FILE}0
59export VDEV1=$DEVICE_DIR/${DEVICE_FILE}1
60export VDEV2=$DEVICE_DIR/${DEVICE_FILE}2
61export VDEV3=$DEVICE_DIR/${DEVICE_FILE}3
62export VDEV4=$DEVICE_DIR/${DEVICE_FILE}4
63export VDEV5=$DEVICE_DIR/${DEVICE_FILE}5
64
65export ALTER_ROOT=/alter_import-test
66