fstests: convert remaining tests to SPDX license tags
[xfstests-dev.git] / tests / ext4 / 003
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2014 Fujitsu.  All Rights Reserved.
4 #
5 # FS QA Test No. ext4/003
6 #
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.
10 #
11 seq=`basename $0`
12 seqres=$RESULT_DIR/$seq
13 echo "QA output created by $seq"
14
15 trap "_cleanup; exit \$status" 0 1 2 3 15
16
17 _cleanup()
18 {
19     _scratch_unmount
20 }
21
22 # get standard environment, filters and checks
23 . ./common/rc
24 . ./common/filter
25
26 # real QA test starts here
27 _supported_fs ext4
28 _supported_os Linux
29
30 _require_scratch
31 _require_scratch_ext4_feature "bigalloc"
32
33 rm -f $seqres.full
34
35 $MKFS_EXT4_PROG -F -O bigalloc -C 65536  -g 256 $SCRATCH_DEV 512m \
36         >> $seqres.full 2>&1
37 _scratch_mount
38
39 $XFS_IO_PROG -f -c "pwrite 0 256m -b 1M" $SCRATCH_MNT/testfile 2>&1 | \
40         _filter_xfs_io
41
42 status=0
43 exit