4 # To test out pv#940675 crash in xfs_trans_brelse + quotas
5 # Without the fix, this will create an ASSERT failure in debug kernels
6 # and crash a non-debug kernel.
8 #-----------------------------------------------------------------------
9 # Copyright (c) 2000-2005 Silicon Graphics, Inc. All Rights Reserved.
11 # This program is free software; you can redistribute it and/or modify it
12 # under the terms of version 2 of the GNU General Public License as
13 # published by the Free Software Foundation.
15 # This program is distributed in the hope that it would be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 # Further, this software is distributed without any warranty that it is
20 # free of the rightful claim of any third person regarding infringement
21 # or the like. Any license provided herein, whether implied or
22 # otherwise, applies only to this software file. Patent licenses, if
23 # any, provided herein do not apply to combinations of this program with
24 # other software, or any other product whatsoever.
26 # You should have received a copy of the GNU General Public License along
27 # with this program; if not, write the Free Software Foundation, Inc., 59
28 # Temple Place - Suite 330, Boston MA 02111-1307, USA.
30 # Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
31 # Mountain View, CA 94043, or:
35 # For further information regarding this notice, see:
37 # http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
38 #-----------------------------------------------------------------------
41 owner=tes@crackle.melbourne.sgi.com
44 echo "QA output created by $seq"
48 status=1 # failure is the default!
49 trap "_cleanup; exit \$status" 0 1 2 3 15
57 # get standard environment, filters and checks
61 # real QA test starts here
63 # Modify as appropriate.
65 _supported_os IRIX Linux
78 while (( count < limit )); do
80 chown $count.$count $file
88 echo "mkfs on scratch"
89 _scratch_mkfs_xfs >$seq.full
91 echo "mount with quotas"
92 export MOUNT_OPTIONS="-o uquota"
95 echo "creating quota file with holes"
96 _chowning_file 1000 2000 100
98 echo "now fill in the holes"
99 _chowning_file 1000 2000 1
101 echo "look at the final file ownership for fun"
102 ls -l $SCRATCH_MNT/* \
103 | $AWK_PROG 'NF > 2 {print $3, $4, $NF}' \
104 | sed "s#$SCRATCH_MNT#SCRATCH_MNT#g"