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
68 _scratch_unmount >/dev/null 2>&1
69 echo "*** MKFS ***" >>$seqres.full
70 echo "" >>$seqres.full
71 _scratch_mkfs >>$seqres.full 2>&1 \
72 || _fail "mkfs failed"
75 mkdir -p $SCRATCH_MNT/fsstress
78 echo Running fsstress in serial:
80 while [ $i -lt $ITERATIONS ]; do
81 echo fsstress iteration: $i | tee -a $seqres.full
83 -d $SCRATCH_MNT/fsstress \
84 $fss_ops -S c >>$seqres.full 2>&1
92 echo Checking filesystem