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 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2 of the License, or
12 # (at your option) any later version.
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
24 # Contact information: Silicon Graphics, Inc., 1500 Crittenden Lane,
25 # Mountain View, CA 94043, USA, or: http://www.sgi.com
26 #-----------------------------------------------------------------------
32 echo "QA output created by $seq"
36 status=1 # failure is the default!
37 trap "_cleanup; exit \$status" 0 1 2 3 15
39 # seed for fsstress known to cause curruptions
51 # get standard environment, filters and checks
55 # real QA test starts here
57 _supported_os IRIX Linux
63 umount $SCRATCH_DEV >/dev/null 2>&1
64 echo "*** MKFS ***" >>$seq.full
66 _scratch_mkfs_xfs >>$seq.full 2>&1 \
67 || _fail "mkfs failed"
68 _scratch_mount >>$seq.full 2>&1 \
69 || _fail "mount failed"
71 mkdir -p $SCRATCH_MNT/fsstress
74 echo Running fsstress in serial:
76 while [ $i -lt $ITERATIONS ]; do
77 echo fsstress iteration: $i | tee -a $seq.full
79 -d $SCRATCH_MNT/fsstress \
89 -S -p 1 -n 1000 >>$seq.full 2>&1
97 echo Checking filesystem