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# $FreeBSD$ 24 25# 26# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 27# Use is subject to license terms. 28# 29# ident "@(#)grow_replicas.cfg 1.4 08/11/03 SMI" 30# 31 32. $STF_SUITE/include/libtest.kshlib 33 34function set_disks 35{ 36 set -A disk_array $(find_disks $DISKS) 37 typeset -i i=0 38 typeset -i limit=4 39 while (( i < limit )); do 40 if [[ -n ${disk_array[$i]} ]]; then 41 export DISK${i}="${disk_array[$i]}" 42 else 43 export DISK=${DISKS%% *} 44 return 45 fi 46 ((i = i + 1)) 47 done 48 export DISK="" 49} 50 51typeset -i index=`expr $RANDOM % 2` 52if (( $index == 0 )); then 53 POOLTYPE="mirror" 54else 55 POOLTYPE="raidz" 56fi 57export POOLTYPE 58 59export BLOCK_SIZE=8192 60set_disks 61# 62# Do not make SIZE too large as the three slices may exceed 63# the size of the disk, and also slow down the test 64# which involves filling until ENOSPC 65# 66export SIZE="100mb" 67if [[ $WRAPPER != *"smi"* ]]; then 68 export PARTITION=1 69else 70 export PARTITION=2 71fi 72export SMALL_WRITE_COUNT=100 73export TESTFILE1=file${TESTCASE_ID}.1 74export WRITE_COUNT=65536000 75