]>
Commit | Line | Data |
---|---|---|
ec0e24c2 SV |
1 | #!/bin/ksh -p |
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 http://www.opensolaris.org/os/licensing. | |
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 | # | |
7a4500a1 | 23 | # Copyright (c) 2016, 2017 by Intel Corporation. All rights reserved. |
ec0e24c2 SV |
24 | # |
25 | ||
26 | . $STF_SUITE/include/libtest.shlib | |
27 | ||
28 | verify_runnable "global" | |
29 | ||
c1d9abf9 | 30 | export DISK_ARRAY_NUM=$(echo ${DISKS} | nawk '{print NF}') |
ec0e24c2 SV |
31 | export DISKSARRAY=$DISKS |
32 | export FSIZE=10M | |
33 | export MAXTIMEOUT=20 | |
34 | ||
7a4500a1 SV |
35 | export SDSIZE=256 |
36 | export SDHOSTS=1 | |
37 | export SDTGTS=1 | |
38 | export SDLUNS=1 | |
39 | ||
c1d9abf9 JWK |
40 | export DISK1=$(echo $DISKS | nawk '{print $1}') |
41 | export DISK2=$(echo $DISKS | nawk '{print $2}') | |
42 | export DISK3=$(echo $DISKS | nawk '{print $3}') | |
ec0e24c2 | 43 | |
ec0e24c2 SV |
44 | if is_linux; then |
45 | set_slice_prefix | |
46 | set_device_dir | |
47 | devs_id[0]=$(get_persistent_disk_name $DISK1) | |
48 | devs_id[1]=$(get_persistent_disk_name $DISK2) | |
49 | devs_id[2]=$(get_persistent_disk_name $DISK3) | |
50 | export devs_id | |
51 | else | |
52 | DEV_DSKDIR="/dev" | |
53 | fi |