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 2009 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26
27#
28# Copyright (c) 2013 by Delphix. All rights reserved.
29#
30
31. $STF_SUITE/include/libtest.shlib
32
33set -A disk_array $(find_disks $DISKS)
34FS_DISK0=${disk_array[0]}
35FS_DISK1=${disk_array[1]}
36FS_DISK2=${disk_array[2]}
37disk0="${DEV_DSKDIR}/$FS_DISK0"
38disk1="${DEV_DSKDIR}/$FS_DISK1"
39disk2="${DEV_DSKDIR}/$FS_DISK2"
40disktargets="$disk0 $disk1 $disk2"
41rawdisk0="${DEV_RDSKDIR}/$FS_DISK0"
42rawdisk1="${DEV_RDSKDIR}/$FS_DISK1"
43rawdisk2="${DEV_RDSKDIR}/$FS_DISK2"
44rawtargets="$rawdisk0 $rawdisk1 $rawdisk2"
45vdisks="$FS_DISK0 $FS_DISK1"
46sdisks="$FS_DISK2"
47
48export FS_DISK0 FS_DISK1 FS_DISK2
49export disk0 disk1 disk2 disktargets
50export rawdisk0 rawdisk1 rawdisk2 rawtargets
51export vdisks sdisks
52
53export UFSMP=$TESTDIR/testinuseufsdump
54export FS_SIZE=1g
55export PREVDUMPDEV=""
56export PIDUFSDUMP=""
57export PIDUFSRESTORE=""
58# size of block to be written to test file - currently 1mb
59export BLOCK_SIZE=$(( 1024 * 1024 ))
60# number of blocks to write == size of file
61export BLOCK_COUNT=100
62export STF_TIMEOUT=1200			# 20 minutes max.
63