xfs: fix old fuzz test invocations of xfs_repair
[xfstests-dev.git] / tests / generic / 070
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. 070
6 #
7 # fsstress incarnation testing extended attributes writes
8 #
9 seq=`basename $0`
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
12
13 here=`pwd`
14 tmp=/tmp/$$
15 status=1        # failure is the default!
16 trap "_cleanup; exit \$status" 0 1 2 3 15
17
18 _cleanup()
19 {
20     cd /
21     rm -rf $TEST_DIR/fsstress
22     rm -f $tmp.*
23 }
24
25 # get standard environment, filters and checks
26 . ./common/rc
27 . ./common/filter
28 . ./common/attr
29
30 # real QA test starts here
31 _supported_fs generic
32
33 _require_test
34 _require_attrs
35
36 FSSTRESS_ARGS=`_scale_fsstress_args \
37         -d $TEST_DIR/fsstress \
38         -f allocsp=0 \
39         -f freesp=0 \
40         -f bulkstat=0 \
41         -f bulkstat1=0 \
42         -f resvsp=0 \
43         -f unresvsp=0 \
44         -f attr_set=100 \
45         -f attr_remove=100 \
46         -p 1 -n 10000 -S c`
47 $FSSTRESS_PROG $FSSTRESS_ARGS >$seqres.full 2>&1
48
49 status=$?
50 exit