2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2005 Silicon Graphics, Inc. All Rights Reserved.
7 # Attempt to cause filesystem corruption with serial fsstresses doing
8 # extended attributes writes - pv 940655
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
16 status=1 # failure is the default!
17 trap "_cleanup; exit \$status" 0 1 2 3 15
19 # seed and options for fsstress known to cause curruptions
56 # get standard environment, filters and checks
61 # real QA test starts here
69 _scratch_unmount >/dev/null 2>&1
70 echo "*** MKFS ***" >>$seqres.full
71 echo "" >>$seqres.full
72 _scratch_mkfs >>$seqres.full 2>&1 \
73 || _fail "mkfs failed"
76 mkdir -p $SCRATCH_MNT/fsstress
79 echo Running fsstress in serial:
81 while [ $i -lt $ITERATIONS ]; do
82 echo fsstress iteration: $i | tee -a $seqres.full
84 -d $SCRATCH_MNT/fsstress \
85 $fss_ops -S c >>$seqres.full 2>&1
93 echo Checking filesystem