2015-07-02 01:23:09 +03:00
|
|
|
#
|
|
|
|
|
# CDDL HEADER START
|
|
|
|
|
#
|
|
|
|
|
# The contents of this file are subject to the terms of the
|
|
|
|
|
# Common Development and Distribution License (the "License").
|
|
|
|
|
# You may not use this file except in compliance with the License.
|
|
|
|
|
#
|
|
|
|
|
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
|
|
|
# or http://www.opensolaris.org/os/licensing.
|
|
|
|
|
# See the License for the specific language governing permissions
|
|
|
|
|
# and limitations under the License.
|
|
|
|
|
#
|
|
|
|
|
# When distributing Covered Code, include this CDDL HEADER in each
|
|
|
|
|
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
|
|
|
# If applicable, add the following below this CDDL HEADER, with the
|
|
|
|
|
# fields enclosed by brackets "[]" replaced with your own identifying
|
|
|
|
|
# information: Portions Copyright [yyyy] [name of copyright owner]
|
|
|
|
|
#
|
|
|
|
|
# CDDL HEADER END
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
|
|
|
|
|
# Use is subject to license terms.
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2013 by Delphix. All rights reserved.
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
. $STF_SUITE/include/libtest.shlib
|
|
|
|
|
|
|
|
|
|
set -A disk_array $(find_disks $DISKS)
|
2020-02-20 19:10:13 +03:00
|
|
|
FS_DISK0=${disk_array[0]}
|
|
|
|
|
FS_DISK1=${disk_array[1]}
|
|
|
|
|
FS_DISK2=${disk_array[2]}
|
|
|
|
|
disk0="${DEV_DSKDIR}/$FS_DISK0"
|
|
|
|
|
disk1="${DEV_DSKDIR}/$FS_DISK1"
|
|
|
|
|
disk2="${DEV_DSKDIR}/$FS_DISK2"
|
|
|
|
|
disktargets="$disk0 $disk1 $disk2"
|
|
|
|
|
rawdisk0="${DEV_RDSKDIR}/$FS_DISK0"
|
|
|
|
|
rawdisk1="${DEV_RDSKDIR}/$FS_DISK1"
|
|
|
|
|
rawdisk2="${DEV_RDSKDIR}/$FS_DISK2"
|
|
|
|
|
rawtargets="$rawdisk0 $rawdisk1 $rawdisk2"
|
|
|
|
|
vdisks="$FS_DISK0 $FS_DISK1"
|
|
|
|
|
sdisks="$FS_DISK2"
|
2015-07-02 01:23:09 +03:00
|
|
|
|
2020-02-20 19:10:13 +03:00
|
|
|
export FS_DISK0 FS_DISK1 FS_DISK2
|
|
|
|
|
export disk0 disk1 disk2 disktargets
|
|
|
|
|
export rawdisk0 rawdisk1 rawdisk2 rawtargets
|
|
|
|
|
export vdisks sdisks
|
2015-07-02 01:23:09 +03:00
|
|
|
|
|
|
|
|
export UFSMP=$TESTDIR/testinuseufsdump
|
|
|
|
|
export FS_SIZE=1g
|
|
|
|
|
export PREVDUMPDEV=""
|
|
|
|
|
export PIDUFSDUMP=""
|
|
|
|
|
export PIDUFSRESTORE=""
|
|
|
|
|
# size of block to be written to test file - currently 1mb
|
|
|
|
|
export BLOCK_SIZE=$(( 1024 * 1024 ))
|
|
|
|
|
# number of blocks to write == size of file
|
|
|
|
|
export BLOCK_COUNT=100
|
|
|
|
|
export STF_TIMEOUT=1200 # 20 minutes max.
|