xref: /illumos-gate/usr/src/test/zfs-tests/tests/functional/migration/migration.cfg (revision 2c5ec7a875dcd76853e6618614e990f1e8cdd56d)
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) 2013, 2016 by Delphix. All rights reserved.
29#
30
31. $STF_SUITE/include/libtest.shlib
32
33set -A disk_array $(find_disks $DISKS)
34case "${#disk_array[*]}" in
350)
36	DISK_COUNT=0
37	;;
381)
39	# We need to repartition the single disk to two slices.
40	DISK_COUNT=1
41	ZFS_DISK=${disk_array[0]}
42	SINGLE_DISK=$ZFS_DISK
43	NONZFS_DISK=$ZFS_DISK
44	ZFSSIDE_DISK=${SINGLE_DISK}s0
45	NONZFSSIDE_DISK=${SINGLE_DISK}s1
46	;;
47*)
48	# In this case there are at least enough disks to use.
49	DISK_COUNT=2
50	ZFS_DISK=${disk_array[0]}
51	NONZFS_DISK=${disk_array[1]}
52	ZFSSIDE_DISK=${ZFS_DISK}s0
53	NONZFSSIDE_DISK=${NONZFS_DISK}s0
54	;;
55esac
56
57export DISK_COUNT ZFS_DISK NONZFS_DISK SINGLE_DISK ZFSSIDE_DISK NONZFSSIDE_DISK
58
59export TESTFILE=/etc/passwd
60export NONZFS_TESTDIR=$TESTDIR/nonzfstestdir
61tmp=`sum $TESTFILE`
62export SUMA=`echo $tmp | awk '{print $1}'`
63export SUMB=`echo $tmp | awk '{print $2}'`
64export FS_SIZE=1g
65export BNAME=`basename $TESTFILE`
66export DNAME=`dirname $TESTFILE`
67