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