xfs: no excessive warnings about dprecated mount options on remount
[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 seq=`basename $0`
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
12
13 here=`pwd`
14 tmp=/tmp/$$
15 status=1        # failure is the default!
16
17 # get standard environment, filters and checks
18 . ./common/rc
19 . ./common/filter
20 . ./common/log
21 . ./common/quota
22
23 # real QA test starts here
24 _supported_fs xfs
25
26 _cleanup()
27 {
28     cd /
29     _cleanup_logfiles
30     rm -f $tmp.*
31     echo "*** unmount"
32     _scratch_unmount 2>/dev/null
33 }
34 trap "_cleanup; exit \$status" 0 1 2 3 15
35
36 # prelim
37 rm -f $seqres.full $tmp.*
38 _require_scratch
39 _require_xfs_quota
40 _require_v2log
41  
42 echo "*** init FS"
43 _scratch_unmount >/dev/null 2>&1
44
45 # do a simple quota test to ensure DQUOT data is happening
46 export MOUNT_OPTIONS="-o quota,gquota"
47
48 # mount with quotas?
49 _scratch_mkfs_xfs "-l version=1" 1>/dev/null 2>&1
50 _qmount
51 $here/src/feature -u $SCRATCH_DEV || _notrun "No quota support at mount time"
52 _scratch_unmount
53
54 _mkfs_log "-l version=1"
55 _create_log
56 _check_log
57 _print_transaction_inode 2
58 _cmp_output $seq.ugquota.trans_inode $filtered
59
60 # got thru it all so we may have success
61 status=0
62 exit