4 # This test is motivated by a bug found in ext4 during random crash
7 #-----------------------------------------------------------------------
8 # Copyright (C) 2017 CTERA Networks. All Rights Reserved.
9 # Author: Amir Goldstein <amir73il@gmail.com>
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.
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write the Free Software Foundation,
22 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 #-----------------------------------------------------------------------
27 seqres=$RESULT_DIR/$seq
28 echo "QA output created by $seq"
32 status=1 # failure is the default!
40 trap "_cleanup; exit \$status" 0 1 2 3 15
42 # get standard environment, filters and checks
47 # real QA test starts here
51 _require_dm_target flakey
55 _scratch_mkfs >> $seqres.full 2>&1
56 _require_metadata_journaling $SCRATCH_DEV
63 write 0x137dd 0xdc69 0x0
64 fallocate 0xb531 0xb5ad 0x21446
65 collapse_range 0x1c000 0x4000 0x21446
66 write 0x3e5ec 0x1a14 0x21446
67 zero_range 0x20fac 0x6d9c 0x40000 keep_size
68 mapwrite 0x216ad 0x274f 0x40000
70 run_check $here/ltp/fsx -d --replay-ops $fsxops $SCRATCH_MNT/testfile
72 _flakey_drop_and_remount
77 echo "Silence is golden"