fix up tree walking with symlinks for attr
[xfstests-dev.git] / 176
1 #! /bin/sh
2 # FSQA Test No. 176
3 #
4 # Check if resvsp on file create effects bmap output after hole punch.
5 # 967674: hole not show when file is created with resvsp
6 #
7 #-----------------------------------------------------------------------
8 #  Copyright (c) 2007 Silicon Graphics, Inc.  All Rights Reserved.
9 #-----------------------------------------------------------------------
10 #
11 owner=ddiss@sgi.com
12
13 seq=`basename $0`
14 echo "QA output created by $seq"
15
16 here=`pwd`
17 tmp=/tmp/$$
18 rm -f $seq.full
19 status=1    # failure is the default!
20 trap "_cleanup; exit \$status" 0 1 2 3 15
21
22 _cleanup()
23 {
24         rm -f $tmp/*
25 }
26
27 # get standard environment, filters and checks
28 . ./common.rc
29 . ./common.filter
30 . ./common.punch
31
32 # real QA test starts here
33 _supported_fs xfs
34 _supported_os Linux
35
36 _require_scratch
37
38 # _test_punch args: blksize extsize_hint filesize "pp1 pp2 pp3" \
39 #                                       "ps1 ps2 ps3" "pt1 pt2 pt3" "wp1 wp2" "ws1 ws2" \
40 #                                       "w p p w p" resvsp
41
42 echo "-- test dmpunch-hole with resvsp on file create --"
43 _test_punch 4096 0 256 "240" "16" "d" "0" "256" "w p"
44
45 echo
46 echo "-- this time dont use resvsp --"
47 _test_punch 4096 0 256 "240" "16" "d" "0" "256" "w p" noresv
48
49 echo
50 echo
51 echo "-- test unresvsp hole punch with resvsp on file create --"
52 _test_punch 4096 0 256 "240" "16" "u" "0" "256" "w p"
53
54 echo
55 echo "-- this time dont use resvsp --"
56 _test_punch 4096 0 256 "240" "16" "u" "0" "256" "w p" noresv
57
58 status=0
59 exit