4 # Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved.
6 # This program is free software; you can redistribute it and/or modify it
7 # under the terms of version 2 of the GNU General Public License as
8 # published by the Free Software Foundation.
10 # This program is distributed in the hope that it would be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 # Further, this software is distributed without any warranty that it is
15 # free of the rightful claim of any third person regarding infringement
16 # or the like. Any license provided herein, whether implied or
17 # otherwise, applies only to this software file. Patent licenses, if
18 # any, provided herein do not apply to combinations of this program with
19 # other software, or any other product whatsoever.
21 # You should have received a copy of the GNU General Public License along
22 # with this program; if not, write the Free Software Foundation, Inc., 59
23 # Temple Place - Suite 330, Boston MA 02111-1307, USA.
25 # Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
26 # Mountain View, CA 94043, or:
30 # For further information regarding this notice, see:
32 # http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
36 # setup and check for config parameters, and in particular
38 # TEST_DIR - scratch test directory that is in an already
39 # mounted XFS file system, needs to be be world
41 # TEST_DEV - device for file system containing TEST_DIR
42 # SCRATCH_DEV - device you can make a scratch file system on
43 # SCRATCH_MNT - mount point for scratch file system
46 # SCRATCH_LOGDEV - scratch log device for external log testing
47 # SCRATCH_RTDEV - scratch rt dev
48 # TEST_LOGDEV - test log device for external log testing
49 # TEST_RTDEV - test rt dev
50 # TAPE_DEV - the tape device for the xfsdump tests
51 # RMT_TAPE_DEV - the remote tape device for the xfsdump tests
52 # RMT_IRIXTAPE_DEV - the IRIX remote tape device for the xfsdump tests
53 # RMT_TAPE_USER - remote user for tape device
57 # - This script is shared by the stress test system and the auto-qa
58 # system (includes both regression test and benchmark components).
59 # - TEST_DEV & TEST_DIR must be assigned.
60 # - this script shouldn't make any assertions about filesystem
61 # validity or mountedness.
65 MODULAR=0 # using XFS as a module or not
66 BOOT="/boot" # install target for kernels
67 export EXTRA=${EXTRA:=-xfs-qa}
69 # general parameters (mainly for auto-qa)
70 SOAK_PROC=3 # -p option to fsstress
71 SOAK_STRESS=10000 # -n option to fsstress
72 SOAK_PASSES=-1 # count of repetitions of fsstress (while soaking)
73 EMAIL=root@localhost # where auto-qa will send its status messages
74 export MKFS_OPTIONS=${MKFS_OPTIONS:=-bsize=4096}
75 export MOUNT_OPTIONS=${MOUNT_OPTIONS:=-ologbufs=2}
76 export CHECK_OPTIONS=${CHECK_OPTIONS:="-g auto"}
77 export BENCH_PASSES=${BENCH_PASSES:=5}
79 export DEBUG=${DEBUG:=-DEXPERIMENTAL_LARGE_SECTORS}
80 export MALLOCLIB=${MALLOCLIB:=/usr/lib/libefence.a}
81 export LOCAL_CONFIGURE_OPTIONS=${LOCAL_CONFIGURE_OPTIONS:=--enable-readline=yes}
90 SCRATCH_LOGDEV=/dev/sda11
95 RMT_TAPE_DEV=bruce:/dev/st0
96 RMT_IRIXTAPE_DEV=snort:/dev/tape
102 SCRATCH_DEV=/dev/sda9
103 SCRATCH_MNT=/mnt/xfs0
110 SCRATCH_DEV=/dev/sda7
111 SCRATCH_MNT=/mnt/xfs1
113 RMT_TAPE_DEV=sagan:/dev/st0
114 RMT_IRIXTAPE_DEV=snort:/dev/tape
119 EMAIL="nathans@larry"
122 SCRATCH_DEV=/dev/hda7
123 SCRATCH_MNT=/mnt/scratch
124 SCRATCH_LOGDEV=/dev/hda9
130 SCRATCH_DEV=/dev/hdc2
131 SCRATCH_MNT=/mnt/xfs1
132 SCRATCH_LOGDEV=/dev/hdc3
137 SCRATCH_DEV=/dev/hda7
138 SCRATCH_LOGDEV=/dev/sda6
144 SCRATCH_DEV=/dev/hda7
149 TEST_DIR=/mnt/scratch_0
150 SCRATCH_DEV=/dev/sdc7
151 SCRATCH_MNT=/mnt/scratch_2
156 SCRATCH_DEV=/dev/hda9
158 SCRATCH_LOGDEV=/dev/hda10
159 SCRATCH_RTDEV=/dev/hda11
164 SCRATCH_DEV=/dev/hda8
165 SCRATCH_MNT=/mnt/xfs0
166 SCRATCH_LOGDEV=/dev/hda10
168 RMT_TAPE_DEV=fuzzy:/dev/st0
169 RMT_IRIXTAPE_DEV=blub:/dev/tape
175 SCRATCH_DEV=/dev/sdd1
176 SCRATCH_MNT=/mnt/xfs1
181 SCRATCH_DEV=/dev/sdb2
182 SCRATCH_MNT=/mnt/xfs1
187 SCRATCH_DEV=/dev/ubd/2
188 SCRATCH_MNT=/mnt/scratch
189 SCRATCH_RTDEV=/dev/ubd/3
190 SCRATCH_LOGDEV=/dev/ubd/4
195 SCRATCH_DEV=/dev/sda2
196 SCRATCH_MNT=/mnt/sda2
197 SCRATCH_LOGDEV=/dev/sda3
202 SCRATCH_DEV=/dev/sdc6
203 SCRATCH_MNT=/mnt/scratch
205 RMT_TAPE_DEV=longhorn:/dev/tape
206 # RMT_IRIXTAPE_DEV=longhorn:/dev/tape
213 SCRATCH_DEV=/dev/sdb2
214 SCRATCH_LOGDEV=/dev/sdb5
215 SCRATCH_RTDEV=/dev/sdb6
217 SCRATCH_MNT=/qa/scratch
220 echo "common.config: Error: need to define parameters for host $HOST"
225 if [ ! -b "$TEST_DEV" ]
227 echo "common.config: Error: \$TEST_DEV ($TEST_DEV) is not a block device"
231 if [ ! -d "$TEST_DIR" ]
233 echo "common.config: Error: \$TEST_DIR ($TEST_DIR) is not a directory"
237 if [ ! -z "$SCRATCH_DEV" -a ! -b "$SCRATCH_DEV" ]
239 echo "common.config: Error: \$SCRATCH_DEV ($SCRATCH_DEV) is not a block device"
243 if [ ! -z "$SCRATCH_DEV" -a ! -d "$SCRATCH_MNT" ]
245 echo "common.config: Error: \$SCRATCH_MNT ($SCRATCH_MNT) is not a directory"
253 echo "Usage: _readlink filename" 1>&2
257 perl -e "\$in=\"$1\";" -e '
258 $lnk = readlink($in);
259 if ($lnk =~ m!^/.*!) {
263 chomp($dir = `dirname $in`);
268 # if devfs is running expand the full /dev/.. pathname - this is what will be
269 # returned by utilities such as mount
270 [ -L "$TEST_DEV" ] && TEST_DEV=`_readlink $TEST_DEV`
271 [ -L "$SCRATCH_DEV" ] && SCRATCH_DEV=`_readlink $SCRATCH_DEV`
272 [ -L "$SCRATCH_LOGDEV" ] && SCRATCH_LOGDEV=`_readlink $SCRATCH_LOGDEV`
273 [ -L "$SCRATCH_RTDEV" ] && SCRATCH_RTDEV=`_readlink $SCRATCH_LOGDEV`
275 # make sure this script returns success