2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2015 NETGEAR, Inc. All Rights Reserved.
5 # FS QA Test No. btrfs/114
7 # btrfs quota scan/unmount sanity test
8 # Make sure that unmounting during a quota rescan doesn't crash
11 _begin_fstest auto qgroup
13 # Import common functions.
16 # real QA test starts here
20 _scratch_mkfs >>$seqres.full 2>&1
23 for i in `seq 0 1 450000`; do
24 echo -n > $SCRATCH_MNT/file.$i
26 echo 3 > /proc/sys/vm/drop_caches
27 $BTRFS_UTIL_PROG quota enable $SCRATCH_MNT
30 echo "Silence is golden"