This change makes test 041 function correctly other blocks sizes, not just 4096.
[xfstests-dev.git] / 116
1 #! /bin/sh
2 # FS QA Test No. 116
3 #
4 # pv#940491
5 # Test out resetting of sb_qflags when mounting with no quotas after
6 # having mounted with quotas.
7 #
8 #-----------------------------------------------------------------------
9 # Copyright (c) 2000-2005 Silicon Graphics, Inc.  All Rights Reserved.
10 #-----------------------------------------------------------------------
11 #
12 # creator
13 owner=fsgqa@snap.melbourne.sgi.com
14
15 seq=`basename $0`
16 echo "QA output created by $seq"
17
18 here=`pwd`
19 tmp=/tmp/$$
20 status=1        # failure is the default!
21 trap "_cleanup; exit \$status" 0 1 2 3 15
22
23 _cleanup()
24 {
25     cd /
26     rm -f $tmp.*
27 }
28
29 # get standard environment, filters and checks
30 . ./common.rc
31 . ./common.filter
32 . ./common.quota
33
34 # real QA test starts here
35
36 _supported_fs xfs
37 _supported_os IRIX Linux
38
39 _require_scratch
40 _require_quota
41
42 mkfs.xfs -f $SCRATCH_DEV >/dev/null 2>&1
43 mount -o uquota $SCRATCH_DEV $SCRATCH_MNT
44 umount $SCRATCH_MNT
45 xfs_db -r -c sb -c print $SCRATCH_DEV | grep qflags
46 mount $SCRATCH_DEV $SCRATCH_MNT
47 umount $SCRATCH_MNT
48 xfs_db -r -c sb -c print $SCRATCH_DEV | grep qflags
49
50
51 # success, all done
52 status=0
53 exit