4 # Attempt to cause filesystem corruption with serial fsstresses doing
5 # extended attributes writes - pv 940655
7 #-----------------------------------------------------------------------
8 # Copyright (c) 2005 Silicon Graphics, Inc. All Rights Reserved.
9 #-----------------------------------------------------------------------
15 echo "QA output created by $seq"
19 status=1 # failure is the default!
20 trap "_cleanup; exit \$status" 0 1 2 3 15
22 # seed for fsstress known to cause curruptions
34 # get standard environment, filters and checks
38 # real QA test starts here
40 _supported_os IRIX Linux
46 umount $SCRATCH_DEV >/dev/null 2>&1
47 echo "*** MKFS ***" >>$seq.full
49 _scratch_mkfs_xfs >>$seq.full 2>&1 \
50 || _fail "mkfs failed"
51 _scratch_mount >>$seq.full 2>&1 \
52 || _fail "mount failed"
54 mkdir -p $SCRATCH_MNT/fsstress
57 echo Running fsstress in serial:
59 while [ $i -lt $ITERATIONS ]; do
60 echo fsstress iteration: $i | tee -a $seq.full
62 -d $SCRATCH_MNT/fsstress \
72 -S -p 1 -n 1000 >>$seq.full 2>&1
80 echo Checking filesystem