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 _begin_fstest auto quick
13 # Import common functions.
15 # real QA test starts here
16 _supported_fs ext3 ext4
18 _require_command "$DEBUGFS_PROG" debugfs
20 echo "Silence is golden"
22 # Although the bug only happens when last_orphan is set to 5
23 # it is better to test all reserved inode numbers 1-10 here
25 # create smaller filesystems to save test time
26 _scratch_mkfs_sized $((16 * 1024 * 1024)) >>$seqres.full 2>&1
27 $DEBUGFS_PROG -w -R "ssv last_orphan $i" $SCRATCH_DEV >>$seqres.full 2>&1