1*dd50e0ccSTony Hutter# 2*dd50e0ccSTony Hutter# CDDL HEADER START 3*dd50e0ccSTony Hutter# 4*dd50e0ccSTony Hutter# The contents of this file are subject to the terms of the 5*dd50e0ccSTony Hutter# Common Development and Distribution License (the "License"). 6*dd50e0ccSTony Hutter# You may not use this file except in compliance with the License. 7*dd50e0ccSTony Hutter# 8*dd50e0ccSTony Hutter# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*dd50e0ccSTony Hutter# or http://www.opensolaris.org/os/licensing. 10*dd50e0ccSTony Hutter# See the License for the specific language governing permissions 11*dd50e0ccSTony Hutter# and limitations under the License. 12*dd50e0ccSTony Hutter# 13*dd50e0ccSTony Hutter# When distributing Covered Code, include this CDDL HEADER in each 14*dd50e0ccSTony Hutter# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*dd50e0ccSTony Hutter# If applicable, add the following below this CDDL HEADER, with the 16*dd50e0ccSTony Hutter# fields enclosed by brackets "[]" replaced with your own identifying 17*dd50e0ccSTony Hutter# information: Portions Copyright [yyyy] [name of copyright owner] 18*dd50e0ccSTony Hutter# 19*dd50e0ccSTony Hutter# CDDL HEADER END 20*dd50e0ccSTony Hutter 21*dd50e0ccSTony Hutter# 22*dd50e0ccSTony Hutter# Copyright (c) 2016, 2017 by Intel Corporation. All rights reserved. 23*dd50e0ccSTony Hutter# 24*dd50e0ccSTony Hutter 25*dd50e0ccSTony Hutter. $STF_SUITE/include/libtest.shlib 26*dd50e0ccSTony Hutter 27*dd50e0ccSTony Hutterverify_runnable "global" 28*dd50e0ccSTony Hutter 29*dd50e0ccSTony Hutterexport DISK_ARRAY_NUM=$(echo ${DISKS} | nawk '{print NF}') 30*dd50e0ccSTony Hutterexport DISKSARRAY=$DISKS 31*dd50e0ccSTony Hutterexport FSIZE=10M 32*dd50e0ccSTony Hutterexport MAXTIMEOUT=30 33*dd50e0ccSTony Hutter 34*dd50e0ccSTony Hutterexport SDSIZE=256 35*dd50e0ccSTony Hutterexport SDHOSTS=1 36*dd50e0ccSTony Hutterexport SDTGTS=1 37*dd50e0ccSTony Hutterexport SDLUNS=1 38*dd50e0ccSTony Hutter 39*dd50e0ccSTony Hutterexport DISK1=$(echo $DISKS | nawk '{print $1}') 40*dd50e0ccSTony Hutterexport DISK2=$(echo $DISKS | nawk '{print $2}') 41*dd50e0ccSTony Hutterexport DISK3=$(echo $DISKS | nawk '{print $3}') 42*dd50e0ccSTony Hutter 43*dd50e0ccSTony Hutterif is_linux; then 44*dd50e0ccSTony Hutter set_slice_prefix 45*dd50e0ccSTony Hutter set_device_dir 46*dd50e0ccSTony Hutter devs_id[0]=$(get_persistent_disk_name $DISK1) 47*dd50e0ccSTony Hutter devs_id[1]=$(get_persistent_disk_name $DISK2) 48*dd50e0ccSTony Hutter devs_id[2]=$(get_persistent_disk_name $DISK3) 49*dd50e0ccSTony Hutter export devs_id 50*dd50e0ccSTony Hutterelse 51*dd50e0ccSTony Hutter DEV_DSKDIR="/dev" 52*dd50e0ccSTony Hutterfi 53*dd50e0ccSTony Hutter 54*dd50e0ccSTony Hutterexport VDEV_FILES="$TEST_BASE_DIR/file-1 $TEST_BASE_DIR/file-2 \ 55*dd50e0ccSTony Hutter $TEST_BASE_DIR/file-3 $TEST_BASE_DIR/file-4" 56*dd50e0ccSTony Hutterexport SPARE_FILE="$TEST_BASE_DIR/spare-1" 57*dd50e0ccSTony Hutterexport FAULT_FILE="$TEST_BASE_DIR/file-1" 58