fstests: move test group info to test files
[xfstests-dev.git] / tests / xfs / 081
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2003 Silicon Graphics, Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. 081
6 #
7 # To test out logprint with quotas
8 #
9 . ./common/preamble
10 _begin_fstest deprecated # log logprint quota
11
12 # Import common functions.
13 . ./common/filter
14 . ./common/log
15 . ./common/quota
16
17 # real QA test starts here
18 _supported_fs xfs
19
20 # Override the default cleanup function.
21 _cleanup()
22 {
23     cd /
24     _cleanup_logfiles
25     rm -f $tmp.*
26     echo "*** unmount"
27     _scratch_unmount 2>/dev/null
28 }
29
30 # prelim
31 _require_scratch
32 _require_xfs_quota
33 _require_v2log
34  
35 echo "*** init FS"
36 _scratch_unmount >/dev/null 2>&1
37
38 # do a simple quota test to ensure DQUOT data is happening
39 export MOUNT_OPTIONS="-o quota,gquota"
40
41 # mount with quotas?
42 _scratch_mkfs_xfs "-l version=1" 1>/dev/null 2>&1
43 _qmount
44 $here/src/feature -u $SCRATCH_DEV || _notrun "No quota support at mount time"
45 _scratch_unmount
46
47 _mkfs_log "-l version=1"
48 _create_log
49 _check_log
50 _print_transaction_inode 2
51 _cmp_output $seq.ugquota.trans_inode $filtered
52
53 # got thru it all so we may have success
54 status=0
55 exit