1# SPDX-License-Identifier: CDDL-1.0 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 https://opensource.org/licenses/CDDL-1.0. 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# Copyright (c) 2016, 2017 by Intel Corporation. All rights reserved. 24# 25 26. $STF_SUITE/include/libtest.shlib 27 28verify_runnable "global" 29 30export DISK_ARRAY_NUM=$(echo ${DISKS} | awk '{print NF}') 31export DISKSARRAY=$DISKS 32export FSIZE=10M 33export MAXTIMEOUT=30 34 35export SDSIZE=256 36export SDHOSTS=1 37export SDTGTS=1 38export SDLUNS=1 39 40read -r DISK1 DISK2 DISK3 _ <<<"$DISKS" 41export DISK1 DISK2 DISK3 42 43if is_linux; then 44 set_slice_prefix 45 set_device_dir 46 devs_id[0]=$(get_persistent_disk_name $DISK1) 47 devs_id[1]=$(get_persistent_disk_name $DISK2) 48 devs_id[2]=$(get_persistent_disk_name $DISK3) 49 export devs_id 50fi 51 52export VDEV_FILES="$TEST_BASE_DIR/file-1 $TEST_BASE_DIR/file-2 \ 53 $TEST_BASE_DIR/file-3 $TEST_BASE_DIR/file-4" 54export SPARE_FILE="$TEST_BASE_DIR/spare-1" 55export FAULT_FILE="$TEST_BASE_DIR/file-1" 56