generic: test MADV_POPULATE_READ with IO errors
[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 . ./common/preamble
12 _begin_fstest quota auto quick
13
14 # Import common functions.
15 . ./common/filter
16 . ./common/quota
17
18 # real QA test starts here
19
20 _supported_fs xfs
21
22 _require_scratch
23 _require_xfs_quota
24
25 # Only mount with the quota options we specify below
26 _qmount_option "defaults"
27
28 _scratch_mkfs >/dev/null 2>&1
29 _scratch_mount "-o uquota"
30 _scratch_unmount
31 _scratch_xfs_db -r -c sb -c print  | grep qflags
32 _scratch_mount
33 _scratch_unmount
34 _scratch_xfs_db -r -c sb -c print  | grep qflags
35
36 # success, all done
37 status=0
38 exit