xfs/530: skip test if user MKFS_OPTIONS screw up formatting
[xfstests-dev.git] / tests / xfs / 252
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2010 Red Hat.  All Rights Reserved.
4 #
5 # FS QA Test No. 252
6 #
7 # Test fallocate hole punching
8 #
9 . ./common/preamble
10 _begin_fstest auto quick prealloc punch
11
12 # Import common functions.
13 . ./common/filter
14 . ./common/punch
15
16 # real QA test starts here
17 _supported_fs xfs 
18
19 _require_test
20 _require_xfs_io_command "falloc"
21 _require_xfs_io_command "fpunch"
22 _require_xfs_io_command "fiemap"
23
24 testfile=$TEST_DIR/252.$$
25
26 # Standard punch hole tests
27 _test_generic_punch falloc fpunch fpunch fiemap _filter_fiemap $testfile
28
29 # Delayed allocation punch hole tests
30 _test_generic_punch -d falloc fpunch fpunch fiemap _filter_fiemap $testfile
31
32 # Multi hole punch tests
33 _test_generic_punch -k falloc fpunch fpunch fiemap _filter_fiemap $testfile
34
35 # Delayed allocation multi punch hole tests
36 _test_generic_punch -d -k falloc fpunch fpunch fiemap _filter_fiemap $testfile
37
38 status=0 ; exit