xfs: no excessive warnings about dprecated mount options on remount
[xfstests-dev.git] / tests / xfs / 116
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2005 Silicon Graphics, Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. 116
6 #
7 # pv#940491
8 # Test out resetting of sb_qflags when mounting with no quotas after
9 # having mounted with quotas.
10 #
11 seq=`basename $0`
12 seqres=$RESULT_DIR/$seq
13 echo "QA output created by $seq"
14
15 here=`pwd`
16 tmp=/tmp/$$
17 status=1        # failure is the default!
18 trap "_cleanup; exit \$status" 0 1 2 3 15
19
20 _cleanup()
21 {
22     cd /
23     rm -f $tmp.*
24 }
25
26 # get standard environment, filters and checks
27 . ./common/rc
28 . ./common/filter
29 . ./common/quota
30
31 # real QA test starts here
32
33 _supported_fs xfs
34
35 _require_scratch
36 _require_xfs_quota
37
38 # Only mount with the quota options we specify below
39 _qmount_option "defaults"
40
41 _scratch_mkfs >/dev/null 2>&1
42 _scratch_mount "-o uquota"
43 _scratch_unmount
44 _scratch_xfs_db -r -c sb -c print  | grep qflags
45 _scratch_mount
46 _scratch_unmount
47 _scratch_xfs_db -r -c sb -c print  | grep qflags
48
49 # success, all done
50 status=0
51 exit