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# Copyright (c) 2023 by Klara, Inc.
30#
31
32. $STF_SUITE/include/libtest.shlib
33
34export DISK=${DISKS%% *}
35export FS_SIZE="$((($MINVDEVSIZE / (1024 * 1024)) * 32))m"
36export FILE_SIZE="$((MINVDEVSIZE))"
37export SLICE_SIZE="$((($MINVDEVSIZE / (1024 * 1024)) * 2))m"
38export MAX_NUM=6
39export DEVICE_DIR=$TEST_BASE_DIR/dev_import-test
40export BACKUP_DEVICE_DIR=$TEST_BASE_DIR/bakdev_import-test
41export DEVICE_FILE=disk
42export DEVICE_ARCHIVE=archive_import-test
43export MYTESTFILE=$STF_SUITE/include/libtest.shlib
44
45export CPATH=$TEST_BASE_DIR/cachefile.$$
46export CPATHBKP=$TEST_BASE_DIR/cachefile.$$.bkp
47export CPATHBKP2=$TEST_BASE_DIR/cachefile.$$.bkp2
48export MD5FILE=$TEST_BASE_DIR/md5sums.$$
49export MD5FILE2=$TEST_BASE_DIR/md5sums.$$.2
50
51export GROUP_NUM=3
52typeset -i num=0
53while (( num < $GROUP_NUM )); do
54	DEVICE_FILES="$DEVICE_FILES ${DEVICE_DIR}/${DEVICE_FILE}$num"
55	(( num = num + 1 ))
56done
57export DEVICE_FILES
58
59export VDEV0=$DEVICE_DIR/${DEVICE_FILE}0
60export VDEV1=$DEVICE_DIR/${DEVICE_FILE}1
61export VDEV2=$DEVICE_DIR/${DEVICE_FILE}2
62export VDEV3=$DEVICE_DIR/${DEVICE_FILE}3
63export VDEV4=$DEVICE_DIR/${DEVICE_FILE}4
64export VDEV5=$DEVICE_DIR/${DEVICE_FILE}5
65
66export ALTER_ROOT=/alter_import-test
67
68export HOSTID_FILE="/etc/hostid"
69export HOSTID1=01234567
70export HOSTID2=89abcdef
71