]>
Commit | Line | Data |
---|---|---|
ec0e24c2 SV |
1 | # |
2 | # CDDL HEADER START | |
3 | # | |
4 | # The contents of this file are subject to the terms of the | |
5 | # Common Development and Distribution License (the "License"). | |
6 | # You may not use this file except in compliance with the License. | |
7 | # | |
8 | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE | |
9 | # or http://www.opensolaris.org/os/licensing. | |
10 | # See the License for the specific language governing permissions | |
11 | # and limitations under the License. | |
12 | # | |
13 | # When distributing Covered Code, include this CDDL HEADER in each | |
14 | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. | |
15 | # If applicable, add the following below this CDDL HEADER, with the | |
16 | # fields enclosed by brackets "[]" replaced with your own identifying | |
17 | # information: Portions Copyright [yyyy] [name of copyright owner] | |
18 | # | |
19 | # CDDL HEADER END | |
20 | ||
21 | # | |
7a4500a1 | 22 | # Copyright (c) 2016, 2017 by Intel Corporation. All rights reserved. |
ec0e24c2 SV |
23 | # |
24 | ||
25 | . $STF_SUITE/include/libtest.shlib | |
26 | ||
27 | verify_runnable "global" | |
28 | ||
c1d9abf9 | 29 | export DISK_ARRAY_NUM=$(echo ${DISKS} | nawk '{print NF}') |
ec0e24c2 SV |
30 | export DISKSARRAY=$DISKS |
31 | export FSIZE=10M | |
32 | export MAXTIMEOUT=20 | |
33 | ||
7a4500a1 SV |
34 | export SDSIZE=256 |
35 | export SDHOSTS=1 | |
36 | export SDTGTS=1 | |
37 | export SDLUNS=1 | |
38 | ||
c1d9abf9 JWK |
39 | export DISK1=$(echo $DISKS | nawk '{print $1}') |
40 | export DISK2=$(echo $DISKS | nawk '{print $2}') | |
41 | export DISK3=$(echo $DISKS | nawk '{print $3}') | |
ec0e24c2 | 42 | |
ec0e24c2 SV |
43 | if 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 | |
50 | else | |
51 | DEV_DSKDIR="/dev" | |
52 | fi |