2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2013 Red Hat, Inc. All Rights Reserved.
7 # Regression test for commit:
8 # 9559996 ext4: remove mb_groups before tearing down the buddy_cache
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
15 status=1 # failure is the default!
16 trap "_cleanup; exit \$status" 0 1 2 3 15
21 kill $PIDS >/dev/null 2>&1
24 # get standard environment, filters and checks
28 # real QA test starts here
34 echo "Silence is golden"
36 DEV_BASENAME=$(_short_dev $SCRATCH_DEV)
37 echo "Start test on device $SCRATCH_DEV, basename $DEV_BASENAME" >$seqres.full
38 _scratch_mkfs >>$seqres.full 2>&1
41 cat /proc/fs/ext4/$DEV_BASENAME/mb_groups > /dev/null 2>&1
45 # 30 loops is enough to crash a buggy kernel
47 while [ $i -lt 30 ]; do
54 kill $PIDS >/dev/null 2>&1