2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2015 NETGEAR, Inc. All Rights Reserved.
5 # FS QA Test No. btrfs/115
7 # btrfs quota scan/disable sanity test
8 # Make sure that disabling quotas during a quota rescan doesn't crash
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
16 status=1 # failure is the default!
17 trap "_cleanup; exit \$status" 0 1 2 3 15
25 # get standard environment, filters and checks
29 # remove previous $seqres.full before test
32 # real QA test starts here
36 _scratch_mkfs >>$seqres.full 2>&1
39 for i in `seq 0 1 450000`; do
40 echo -n > $SCRATCH_MNT/file.$i
42 echo 3 > /proc/sys/vm/drop_caches
43 $BTRFS_UTIL_PROG quota enable $SCRATCH_MNT
44 $BTRFS_UTIL_PROG quota disable $SCRATCH_MNT
47 echo "Silence is golden"