tests: remove udf/101
[xfstests-dev.git] / tests / ext4 / 003
1 #! /bin/bash
2 # FS QA Test No. ext4/003
3 #
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.
7 #
8 #-----------------------------------------------------------------------
9 # Copyright (c) 2014 Fujitsu.  All Rights Reserved.
10 #
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.
14 #
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 #-----------------------------------------------------------------------
20
21 seq=`basename $0`
22 seqres=$RESULT_DIR/$seq
23 echo "QA output created by $seq"
24
25 trap "_cleanup; exit \$status" 0 1 2 3 15
26
27 _cleanup()
28 {
29     _scratch_unmount
30 }
31
32 # get standard environment, filters and checks
33 . ./common/rc
34 . ./common/filter
35
36 # real QA test starts here
37 _supported_fs ext4
38 _supported_os Linux
39
40 _require_scratch
41 _require_ext4_mkfs_feature "bigalloc"
42 _require_ext4_bigalloc
43
44 rm -f $seqres.full
45
46 $MKFS_EXT4_PROG -F -O bigalloc -C 65536  -g 256 $SCRATCH_DEV 512m \
47         >> $seqres.full 2>&1
48 _scratch_mount || _fail "couldn't mount fs"
49
50 $XFS_IO_PROG -f -c "pwrite 0 256m -b 1M" $SCRATCH_MNT/testfile 2>&1 | \
51         _filter_xfs_io
52
53 status=0
54 exit