xref: /titanic_50/usr/src/test/zfs-tests/tests/functional/inuse/inuse.cfg (revision f38cb554a534c6df738be3f4d23327e69888e634)
1*f38cb554SJohn Wren Kennedy#
2*f38cb554SJohn Wren Kennedy# CDDL HEADER START
3*f38cb554SJohn Wren Kennedy#
4*f38cb554SJohn Wren Kennedy# The contents of this file are subject to the terms of the
5*f38cb554SJohn Wren Kennedy# Common Development and Distribution License (the "License").
6*f38cb554SJohn Wren Kennedy# You may not use this file except in compliance with the License.
7*f38cb554SJohn Wren Kennedy#
8*f38cb554SJohn Wren Kennedy# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*f38cb554SJohn Wren Kennedy# or http://www.opensolaris.org/os/licensing.
10*f38cb554SJohn Wren Kennedy# See the License for the specific language governing permissions
11*f38cb554SJohn Wren Kennedy# and limitations under the License.
12*f38cb554SJohn Wren Kennedy#
13*f38cb554SJohn Wren Kennedy# When distributing Covered Code, include this CDDL HEADER in each
14*f38cb554SJohn Wren Kennedy# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*f38cb554SJohn Wren Kennedy# If applicable, add the following below this CDDL HEADER, with the
16*f38cb554SJohn Wren Kennedy# fields enclosed by brackets "[]" replaced with your own identifying
17*f38cb554SJohn Wren Kennedy# information: Portions Copyright [yyyy] [name of copyright owner]
18*f38cb554SJohn Wren Kennedy#
19*f38cb554SJohn Wren Kennedy# CDDL HEADER END
20*f38cb554SJohn Wren Kennedy#
21*f38cb554SJohn Wren Kennedy
22*f38cb554SJohn Wren Kennedy#
23*f38cb554SJohn Wren Kennedy# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24*f38cb554SJohn Wren Kennedy# Use is subject to license terms.
25*f38cb554SJohn Wren Kennedy#
26*f38cb554SJohn Wren Kennedy
27*f38cb554SJohn Wren Kennedy#
28*f38cb554SJohn Wren Kennedy# Copyright (c) 2013 by Delphix. All rights reserved.
29*f38cb554SJohn Wren Kennedy#
30*f38cb554SJohn Wren Kennedy
31*f38cb554SJohn Wren Kennedy. $STF_SUITE/include/libtest.shlib
32*f38cb554SJohn Wren Kennedy
33*f38cb554SJohn Wren Kennedyverify_disk_count "$DISKS" 2
34*f38cb554SJohn Wren Kennedyset -A disk_array $(find_disks $DISKS)
35*f38cb554SJohn Wren Kennedycase "${#disk_array[@]}" in
36*f38cb554SJohn Wren Kennedy2)
37*f38cb554SJohn Wren Kennedy	FS_DISK0=${disk_array[0]}
38*f38cb554SJohn Wren Kennedy	FS_DISK1=${disk_array[1]}
39*f38cb554SJohn Wren Kennedy	FS_DISK2=${disk_array[0]}
40*f38cb554SJohn Wren Kennedy	FS_DISK3=${disk_array[1]}
41*f38cb554SJohn Wren Kennedy	FS_SIDE0=${FS_DISK0}s0
42*f38cb554SJohn Wren Kennedy	FS_SIDE1=${FS_DISK0}s1
43*f38cb554SJohn Wren Kennedy	FS_SIDE2=${FS_DISK1}s0
44*f38cb554SJohn Wren Kennedy	FS_SIDE3=${FS_DISK1}s1
45*f38cb554SJohn Wren Kennedy	disk0="/dev/dsk/$FS_SIDE0"
46*f38cb554SJohn Wren Kennedy	disk1="/dev/dsk/$FS_SIDE1"
47*f38cb554SJohn Wren Kennedy	disk2="/dev/dsk/$FS_SIDE2"
48*f38cb554SJohn Wren Kennedy	disk3="/dev/dsk/$FS_SIDE3"
49*f38cb554SJohn Wren Kennedy	disktargets="$disk0 $disk2"
50*f38cb554SJohn Wren Kennedy	rawdisk0="/dev/rdsk/$FS_SIDE0"
51*f38cb554SJohn Wren Kennedy	rawdisk1="/dev/rdsk/$FS_SIDE1"
52*f38cb554SJohn Wren Kennedy	rawdisk2="/dev/rdsk/$FS_SIDE2"
53*f38cb554SJohn Wren Kennedy	rawdisk3="/dev/rdsk/$FS_SIDE3"
54*f38cb554SJohn Wren Kennedy	rawtargets="$rawdisk0 $rawdisk2"
55*f38cb554SJohn Wren Kennedy	vdisks="$FS_DISK0"
56*f38cb554SJohn Wren Kennedy	sdisks="$FS_DISK1"
57*f38cb554SJohn Wren Kennedy	vslices="$FS_SIDE0 $FS_SIDE1 $FS_SIDE2"
58*f38cb554SJohn Wren Kennedy	sslices="$FS_SIDE3"
59*f38cb554SJohn Wren Kennedy	;;
60*f38cb554SJohn Wren Kennedy3)
61*f38cb554SJohn Wren Kennedy	FS_DISK0=${disk_array[0]}
62*f38cb554SJohn Wren Kennedy	FS_DISK1=${disk_array[1]}
63*f38cb554SJohn Wren Kennedy	FS_DISK2=${disk_array[2]}
64*f38cb554SJohn Wren Kennedy	FS_DISK3=${disk_array[0]}
65*f38cb554SJohn Wren Kennedy	FS_SIDE0=${FS_DISK0}s0
66*f38cb554SJohn Wren Kennedy	FS_SIDE1=${FS_DISK0}s1
67*f38cb554SJohn Wren Kennedy	FS_SIDE2=${FS_DISK1}s0
68*f38cb554SJohn Wren Kennedy	FS_SIDE3=${FS_DISK2}s0
69*f38cb554SJohn Wren Kennedy	disk0="/dev/dsk/$FS_SIDE0"
70*f38cb554SJohn Wren Kennedy	disk1="/dev/dsk/$FS_SIDE1"
71*f38cb554SJohn Wren Kennedy	disk2="/dev/dsk/$FS_SIDE2"
72*f38cb554SJohn Wren Kennedy	disk3="/dev/dsk/$FS_SIDE3"
73*f38cb554SJohn Wren Kennedy	disktargets="$disk0 $disk2 $disk3"
74*f38cb554SJohn Wren Kennedy	rawdisk0="/dev/rdsk/$FS_SIDE0"
75*f38cb554SJohn Wren Kennedy	rawdisk1="/dev/rdsk/$FS_SIDE1"
76*f38cb554SJohn Wren Kennedy	rawdisk2="/dev/rdsk/$FS_SIDE2"
77*f38cb554SJohn Wren Kennedy	rawdisk3="/dev/rdsk/$FS_SIDE3"
78*f38cb554SJohn Wren Kennedy	rawtargets="$rawdisk0 $rawdisk2 $rawdisk3"
79*f38cb554SJohn Wren Kennedy	vdisks="$FS_DISK0 $FS_DISK1"
80*f38cb554SJohn Wren Kennedy	sdisks="$FS_DISK2"
81*f38cb554SJohn Wren Kennedy	vslices="$FS_SIDE0 $FS_SIDE2 $FS_SIDE3"
82*f38cb554SJohn Wren Kennedy	sslices="$FS_SIDE1"
83*f38cb554SJohn Wren Kennedy	;;
84*f38cb554SJohn Wren Kennedy*)
85*f38cb554SJohn Wren Kennedy	FS_DISK0=${disk_array[0]}
86*f38cb554SJohn Wren Kennedy	FS_DISK1=${disk_array[1]}
87*f38cb554SJohn Wren Kennedy	FS_DISK2=${disk_array[2]}
88*f38cb554SJohn Wren Kennedy	FS_DISK3=${disk_array[3]}
89*f38cb554SJohn Wren Kennedy	FS_SIDE0=${FS_DISK0}s0
90*f38cb554SJohn Wren Kennedy	FS_SIDE1=${FS_DISK1}s0
91*f38cb554SJohn Wren Kennedy	FS_SIDE2=${FS_DISK2}s0
92*f38cb554SJohn Wren Kennedy	FS_SIDE3=${FS_DISK3}s0
93*f38cb554SJohn Wren Kennedy	disk0="/dev/dsk/$FS_SIDE0"
94*f38cb554SJohn Wren Kennedy	disk1="/dev/dsk/$FS_SIDE1"
95*f38cb554SJohn Wren Kennedy	disk2="/dev/dsk/$FS_SIDE2"
96*f38cb554SJohn Wren Kennedy	disk3="/dev/dsk/$FS_SIDE3"
97*f38cb554SJohn Wren Kennedy	disktargets="$disk0 $disk1 $disk2 $disk3"
98*f38cb554SJohn Wren Kennedy	rawdisk0="/dev/rdsk/$FS_SIDE0"
99*f38cb554SJohn Wren Kennedy	rawdisk1="/dev/rdsk/$FS_SIDE1"
100*f38cb554SJohn Wren Kennedy	rawdisk2="/dev/rdsk/$FS_SIDE2"
101*f38cb554SJohn Wren Kennedy	rawdisk3="/dev/rdsk/$FS_SIDE3"
102*f38cb554SJohn Wren Kennedy	rawtargets="$rawdisk0 $rawdisk1 $rawdisk2 $rawdisk3"
103*f38cb554SJohn Wren Kennedy	vdisks="$FS_DISK0 $FS_DISK1 $FS_DISK2"
104*f38cb554SJohn Wren Kennedy	sdisks="$FS_DISK3"
105*f38cb554SJohn Wren Kennedy	vslices="$FS_SIDE0 $FS_SIDE1 $FS_SIDE2"
106*f38cb554SJohn Wren Kennedy	sslices="$FS_SIDE3"
107*f38cb554SJohn Wren Kennedy	;;
108*f38cb554SJohn Wren Kennedyesac
109*f38cb554SJohn Wren Kennedy
110*f38cb554SJohn Wren Kennedyexport FS_DISK0 FS_DISK1 FS_DISK2 FS_DISK3 SINGLE_DISK
111*f38cb554SJohn Wren Kennedyexport FS_SIDE0 FS_SIDE1 FS_SIDE2 FS_SIDE3
112*f38cb554SJohn Wren Kennedyexport disk0 disk1 disk2 disk3 disktargets
113*f38cb554SJohn Wren Kennedyexport rawdisk0 rawdisk1 rawdisk2 rawdisk3 rawtargets
114*f38cb554SJohn Wren Kennedyexport vdisks sdisks vslices sslices
115*f38cb554SJohn Wren Kennedy
116*f38cb554SJohn Wren Kennedyexport UFSMP=$TESTDIR/testinuseufsdump
117*f38cb554SJohn Wren Kennedyexport FS_SIZE=1g
118*f38cb554SJohn Wren Kennedyexport PREVDUMPDEV=""
119*f38cb554SJohn Wren Kennedyexport PIDUFSDUMP=""
120*f38cb554SJohn Wren Kennedyexport PIDUFSRESTORE=""
121*f38cb554SJohn Wren Kennedy# size of block to be written to test file - currently 1mb
122*f38cb554SJohn Wren Kennedyexport BLOCK_SIZE=$(( 1024 * 1024 ))
123*f38cb554SJohn Wren Kennedy# number of blocks to write == size of file
124*f38cb554SJohn Wren Kennedyexport BLOCK_COUNT=100
125*f38cb554SJohn Wren Kennedyexport STF_TIMEOUT=1200			# 20 minutes max.
126