2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2016 Fujitsu. All Rights Reserved.
7 # Regression test for commit:
8 # c9eb13a ext4: fix hang when processing corrupted orphaned inode list
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
24 # get standard environment, filters and checks
27 # real QA test starts here
28 _supported_fs ext3 ext4
31 _require_command "$DEBUGFS_PROG" debugfs
33 # remove previous $seqres.full before test
35 echo "Silence is golden"
37 # Although the bug only happens when last_orphan is set to 5
38 # it is better to test all reserved inode numbers 1-10 here
40 # create smaller filesystems to save test time
41 _scratch_mkfs_sized $((16 * 1024 * 1024)) >>$seqres.full 2>&1
42 $DEBUGFS_PROG -w -R "ssv last_orphan $i" $SCRATCH_DEV >>$seqres.full 2>&1