fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 096
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2015 Red Hat, Inc., Lukas Czerner <lczerner@redhat.com>
4 #
5 # FS QA Test 096
6 #
7 # Exercise the situation that cause ext4 to BUG_ON() when we use
8 # zero range to zero a range which starts within the isize but ends
9 # past the isize but still in the same block. This particular problem
10 # has only been seen on systems with page_size > block_size.
11 #
12 . ./common/preamble
13 _begin_fstest auto prealloc quick zero
14
15 # Import common functions.
16 . ./common/filter
17
18 # real QA test starts here
19 _supported_fs generic
20 _require_scratch
21 _require_xfs_io_command "fzero"
22
23 echo "Silence is golden"
24
25 # Use smaller scratch fs to shorten the test time
26 _scratch_mkfs_sized $((512 * 1024 * 1024)) >>$seqres.full 2>&1
27 _scratch_mount
28
29 testfile=$SCRATCH_MNT/$seq.$$
30 $XFS_IO_PROG -f -c "pwrite 4096 512" -c "fzero 4351 512" $testfile >> $seqres.full 2>&1
31
32 # success, all done
33 status=0
34 exit