1# 2# This file and its contents are supplied under the terms of the 3# Common Development and Distribution License ("CDDL"), version 1.0. 4# You may only use this file in accordance with the terms of version 5# 1.0 of the CDDL. 6# 7# A full copy of the text of the CDDL should have accompanied this 8# source. A copy of the CDDL is also available via the Internet at 9# http://www.illumos.org/license/CDDL. 10# 11 12# 13# Copyright (c) 2016, 2017 by Intel Corporation. All rights reserved. 14# Copyright (c) 2017 Open-E, Inc. All Rights Reserved. 15# Copyright 2019 Joyent, Inc. 16# 17 18. $STF_SUITE/include/libtest.shlib 19 20verify_runnable "global" 21 22export DISK_ARRAY_NUM=$(echo ${DISKS} | nawk '{print NF}') 23export DISKSARRAY=$DISKS 24export SMALL_FILE_SIZE=10 25export LARGE_FILE_SIZE=80 26export MAXTIMEOUT=40 27 28export SDSIZE=256 29export SDHOSTS=1 30export SDTGTS=1 31export SDLUNS=1 32 33export DISK1=$(echo $DISKS | nawk '{print $1}') 34export DISK2=$(echo $DISKS | nawk '{print $2}') 35export DISK3=$(echo $DISKS | nawk '{print $3}') 36 37case "$(uname)" in 38Linux) 39 set_slice_prefix 40 set_device_dir 41 devs_id[0]=$(get_persistent_disk_name $DISK1) 42 devs_id[1]=$(get_persistent_disk_name $DISK2) 43 devs_id[2]=$(get_persistent_disk_name $DISK3) 44 export devs_id 45 ;; 46SunOS) 47 DEV_DSKDIR="/dev" 48 ;; 49esac 50