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 # real QA test starts here
34 _scratch_mkfs >>$seqres.full 2>&1
37 for i in `seq 0 1 450000`; do
38 echo -n > $SCRATCH_MNT/file.$i
40 echo 3 > /proc/sys/vm/drop_caches
41 $BTRFS_UTIL_PROG quota enable $SCRATCH_MNT
42 $BTRFS_UTIL_PROG quota disable $SCRATCH_MNT
45 echo "Silence is golden"