xfstests: remove stale machine configs
[xfstests-dev.git] / 175
1 #! /bin/bash
2 # FSQA Test No. 175
3 #
4 # Hole punching with extsize hints, holes may not reported by xfs_bmap.
5 # This is not good for certain backup apps, as they rely on the hole
6 # being visible in the file so later on they know where to migrate
7 # back the data from the tape.
8 #
9 #-----------------------------------------------------------------------
10 # Copyright (c) 2007 Silicon Graphics, Inc.  All Rights Reserved.
11 #
12 # This program is free software; you can redistribute it and/or
13 # modify it under the terms of the GNU General Public License as
14 # published by the Free Software Foundation.
15 #
16 # This program is distributed in the hope that it would be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 # GNU General Public License for more details.
20 #
21 # You should have received a copy of the GNU General Public License
22 # along with this program; if not, write the Free Software Foundation,
23 # Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
24 #
25 #-----------------------------------------------------------------------
26 #
27
28 seq=`basename $0`
29 echo "QA output created by $seq"
30
31 here=`pwd`
32 tmp=/tmp/$$
33 rm -f $seq.full
34 status=1    # failure is the default!
35 trap "_cleanup; exit \$status" 0 1 2 3 15
36
37 _cleanup()
38 {
39         rm -f $tmp/*
40 }
41
42 # get standard environment, filters and checks
43 . ./common.rc
44 . ./common.filter
45 . ./common.dmapi
46 . ./common.punch
47
48 # real QA test starts here
49 _supported_fs xfs
50 _supported_os Linux
51
52 _require_scratch
53
54 # test that we have DMAPI support
55 _dmapi_scratch_mount
56 umount $SCRATCH_MNT > /dev/null 2>&1
57
58 # _test_punch args: blksize extsize_hint filesize "pp1 pp2 pp3" \
59 #                                       "ps1 ps2 ps3" "pt1 pt2 pt3" "wp1 wp2" "ws1 ws2" \
60 #                                       "w p p w p" resvsp
61
62 echo "-- test dmpunch-hole without an extent size hint --"
63 _test_punch 4096 0 256 "240" "16" "d" "0" "256" "w p" noresv
64
65 echo
66 echo "-- this time use a 4k (one block) extent size hint --"
67 _test_punch 4096 1 256 "240" "16" "d" "0" "256" "w p" noresv
68
69 status=0
70 exit