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
15 # Override the default cleanup function.
19 kill $PIDS >/dev/null 2>&1
22 # Import common functions.
25 # real QA test starts here
30 echo "Silence is golden"
32 DEV_BASENAME=$(_short_dev $SCRATCH_DEV)
33 echo "Start test on device $SCRATCH_DEV, basename $DEV_BASENAME" >$seqres.full
34 _scratch_mkfs >>$seqres.full 2>&1
37 cat /proc/fs/ext4/$DEV_BASENAME/mb_groups > /dev/null 2>&1
41 # 30 loops is enough to crash a buggy kernel
43 while [ $i -lt 30 ]; do
50 kill $PIDS >/dev/null 2>&1