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.
10 #-----------------------------------------------------------------------
13 owner=tes@crackle.melbourne.sgi.com
16 echo "QA output created by $seq"
20 status=1 # failure is the default!
21 trap "_cleanup; exit \$status" 0 1 2 3 15
29 # get standard environment, filters and checks
34 # real QA test starts here
36 # Modify as appropriate.
38 _supported_os IRIX Linux
52 while (( count < limit )); do
54 chown $count.$count $file
62 echo "mkfs on scratch"
63 _scratch_mkfs_xfs >$seq.full
65 echo "mount with quotas"
66 export MOUNT_OPTIONS="-o uquota"
69 echo "creating quota file with holes"
70 _chowning_file 1000 2000 100
72 echo "now fill in the holes"
73 _chowning_file 1000 2000 1
75 echo "look at the final file ownership for fun"
76 ls -l $SCRATCH_MNT/* \
77 | $AWK_PROG 'NF > 2 {print $3, $4, $NF}' \
78 | sed "s#$SCRATCH_MNT#SCRATCH_MNT#g"