generic: test MADV_POPULATE_READ with IO errors
[xfstests-dev.git] / tests / btrfs / 114
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2015 NETGEAR, Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. btrfs/114
6 #
7 # btrfs quota scan/unmount sanity test
8 # Make sure that unmounting during a quota rescan doesn't crash
9 #
10 . ./common/preamble
11 _begin_fstest auto qgroup
12
13 # Import common functions.
14 . ./common/filter
15
16 # real QA test starts here
17 _supported_fs btrfs
18 _require_scratch
19
20 _scratch_mkfs >>$seqres.full 2>&1
21 _scratch_mount
22
23 for i in `seq 0 1 450000`; do
24         echo -n > $SCRATCH_MNT/file.$i
25 done
26 echo 3 > /proc/sys/vm/drop_caches
27 $BTRFS_UTIL_PROG quota enable $SCRATCH_MNT
28 _scratch_unmount
29
30 echo "Silence is golden"
31 status=0
32 exit