2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2014 Fujitsu. All Rights Reserved.
5 # FS QA Test No. ext4/003
7 # Regression test for commit:
8 # b5b6077 ext4: fix wrong assert in ext4_mb_normalize_request()
9 # This testcase checks whether this bug has been fixed.
12 _begin_fstest auto quick
14 # Override the default cleanup function.
20 # Import common functions.
23 # real QA test starts here
27 _require_scratch_ext4_feature "bigalloc"
29 BLOCK_SIZE=$(get_page_size)
30 $MKFS_EXT4_PROG -F -b $BLOCK_SIZE -O bigalloc -C $(($BLOCK_SIZE * 16)) -g 256 $SCRATCH_DEV 512m \
34 $XFS_IO_PROG -f -c "pwrite 0 256m -b 1M" $SCRATCH_MNT/testfile 2>&1 | \