2 # FS QA Test No. ext4/003
4 # Regression test for commit:
5 # b5b6077 ext4: fix wrong assert in ext4_mb_normalize_request()
6 # This testcase checks whether this bug has been fixed.
8 #-----------------------------------------------------------------------
9 # Copyright (c) 2014 Fujitsu. All Rights Reserved.
11 # This program is free software; you can redistribute it and/or
12 # modify it under the terms of the GNU General Public License as
13 # published by the Free Software Foundation.
15 # This program is distributed in the hope that it would be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
19 #-----------------------------------------------------------------------
22 seqres=$RESULT_DIR/$seq
23 echo "QA output created by $seq"
25 trap "_cleanup; exit \$status" 0 1 2 3 15
32 # get standard environment, filters and checks
36 # real QA test starts here
41 _require_ext4_mkfs_bigalloc
42 _require_ext4_bigalloc
46 yes | $MKFS_EXT4_PROG -O bigalloc -C 65536 -g 256 $SCRATCH_DEV 512m \
48 _scratch_mount || _fail "couldn't mount fs"
50 $XFS_IO_PROG -f -c "pwrite 0 256m -b 1M" $SCRATCH_MNT/testfile 2>&1 | \