1# vim: filetype=sh
2#
3# CDDL HEADER START
4#
5# The contents of this file are subject to the terms of the
6# Common Development and Distribution License (the "License").
7# You may not use this file except in compliance with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22
23#
24# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
25# Use is subject to license terms.
26#
27# ident	"@(#)grow_replicas.cfg	1.4	08/11/03 SMI"
28#
29
30. $STF_SUITE/include/libtest.kshlib
31
32function set_disks
33{
34	set -A disk_array $(find_disks $DISKS)
35	typeset -i i=0
36	typeset -i limit=4
37	while  (( i < limit )); do
38        	if [[ -n ${disk_array[$i]} ]]; then
39                	export DISK${i}="${disk_array[$i]}"
40        	else
41                	export DISK=${DISKS%% *}
42                	return
43        	fi
44        	((i = i + 1))
45	done
46	export DISK=""
47}
48
49typeset -i index=`expr $RANDOM % 2`
50if (( $index == 0 )); then
51        POOLTYPE="mirror"
52else
53        POOLTYPE="raidz"
54fi
55export POOLTYPE
56
57export BLOCK_SIZE=8192
58set_disks
59#
60# Do not make SIZE too large as the three slices may exceed
61# the size of the disk, and also slow down the test
62# which involves filling until ENOSPC
63#
64export SIZE="100mb"
65if [[ $WRAPPER != *"smi"* ]]; then
66	export PARTITION=1
67else
68	export PARTITION=2
69fi
70export SMALL_WRITE_COUNT=100
71export TESTFILE1=file${TESTCASE_ID}.1
72export WRITE_COUNT=65536000
73