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 "@(#)interop.cfg 1.3 08/08/15 SMI" 30# 31 32. $STF_SUITE/include/libtest.kshlib 33 34set -A disk_array $(find_disks $DISKS) 35case "${#disk_array[*]}" in 360) 37 DISK_COUNT=0 38 ;; 391) 40 # We need to repartition the single disk to two slices 41 DISK_COUNT=1 42 META_DISK0=${disk_array[0]} 43 SINGLE_DISK=$META_DISK0 44 META_DISK1=$META_DISK0 45 ZFS_DISK2=$META_DISK0 46 META_SIDE0=${SINGLE_DISK}s0 47 META_SIDE1=${SINGLE_DISK}s1 48 ZFS_SIDE2=${SINGLE_DISK}s3 49 ;; 502) 51 # We need to repartition the single disk to two slices and allocate 52 # the 2nd disk to ZFS 53 DISK_COUNT=2 54 META_DISK0=${disk_array[0]} 55 SINGLE_DISK=$META_DISK0 56 META_DISK1=$META_DISK0 57 ZFS_DISK2=${disk_array[1]} 58 META_SIDE0=${SINGLE_DISK}s0 59 META_SIDE1=${SINGLE_DISK}s1 60 ZFS_SIDE2=${ZFS_DISK2}s0 61 ;; 62*) 63 # In this case there are at least enough disks to use. 64 DISK_COUNT=3 65 META_DISK0=${disk_array[0]} 66 META_DISK1=${disk_array[1]} 67 ZFS_DISK2=${disk_array[2]} 68 META_SIDE0=${META_DISK0}s0 69 META_SIDE1=${META_DISK1}s0 70 ZFS_SIDE2=${ZFS_DISK2}s0 71 ;; 72esac 73 74export DISK_COUNT META_DISK0 META_DISK1 ZFS_DISK2 75export META_SIDE0 META_SIDE1 ZFS_SIDE2 SINGLE_DISK 76 77export TESTFILE=testfile 78export FS_SIZE=500m 79export META_DEVICE_ID=d99 80export META_DEVICE_PATH=/dev/md/$META_DEVICE_ID 81export FILE_COUNT=20 82export FILE_SIZE=$(( 1024 * 1024 )) 83