xfstests: remove stale machine configs
[xfstests-dev.git] / 081
1 #! /bin/bash
2 # FS QA Test No. 081
3 #
4 # To test out logprint with quotas
5 #
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2000-2003 Silicon Graphics, Inc.  All Rights Reserved.
8 #
9 # This program is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU General Public License as
11 # published by the Free Software Foundation.
12 #
13 # This program is distributed in the hope that it would be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write the Free Software Foundation,
20 # Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21 #
22 #-----------------------------------------------------------------------
23 #
24
25 seq=`basename $0`
26 echo "QA output created by $seq"
27
28 here=`pwd`
29 tmp=/tmp/$$
30 status=1        # failure is the default!
31
32 # get standard environment, filters and checks
33 . ./common.rc
34 . ./common.filter
35 . ./common.log
36 . ./common.quota
37
38 # real QA test starts here
39 _supported_fs xfs
40 _supported_os IRIX Linux
41
42 _cleanup()
43 {
44     cd /
45     _cleanup_logfiles
46     rm -f $tmp.*
47     echo "*** unmount"
48     umount $SCRATCH_MNT 2>/dev/null
49 }
50 trap "_cleanup; exit \$status" 0 1 2 3 15
51
52 # prelim
53 rm -f $seq.full $tmp.*
54 _require_scratch
55 _require_xfs_quota
56 _require_v2log
57  
58 echo "*** init FS"
59 umount $SCRATCH_DEV >/dev/null 2>&1
60
61
62 # do a simple quota test to ensure DQUOT data is happening
63 export MOUNT_OPTIONS="-o quota,gquota"
64
65 if [ "$HOSTOS" = "IRIX" ]; then 
66     start=0
67 else
68     start=2
69 fi
70
71 # mount with quotas?
72 _scratch_mkfs_xfs "-l version=1" 1>/dev/null 2>&1
73 _qmount
74 src/feature -u $SCRATCH_DEV || _notrun "No quota support at mount time"
75 umount $SCRATCH_MNT
76
77 _mkfs_log "-l version=1"
78 _create_log
79 _check_log
80 _print_transaction_inode $start
81 _cmp_output $seq.ugquota.trans_inode $filtered
82
83 # got thru it all so we may have success
84 status=0
85 exit