xfs: no excessive warnings about dprecated mount options on remount
[xfstests-dev.git] / tests / xfs / 084
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2004 Silicon Graphics, Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. 084
6 #
7 # Exercises unwritten extent reads and writes, looking
8 # for data corruption (zeroes read) near the end of file.
9 #
10 seq=`basename $0`
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
13
14 here=`pwd`
15 tmp=/tmp/$$
16 status=1        # failure is the default!
17 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
18
19 # get standard environment, filters and checks
20 . ./common/rc
21 . ./common/filter
22
23 _filter_resv()
24 {
25         _filter_test_dir | sed -e 's/[0-9][0-9]* bytes/NUM bytes/g'
26 }
27
28 pgsize=`$here/src/feature -s`
29
30 # -i == number of iterations
31 # -l == bytes to leak on each iteration
32 # -b == read/write block size
33 # -s == preallocation size
34
35 # real QA test starts here
36 _supported_fs xfs
37 _require_xfs_io_command "falloc"
38 _require_test
39
40 echo
41 echo "*** First case - I/O blocksize same as pagesize"
42 $here/src/resvtest -i 20 -b $pgsize "$TEST_DIR/resv" | _filter_resv
43 [ $? -eq 0 ] && echo done
44 rm -f "$TEST_DIR/mumble"
45
46 echo
47 echo "*** Second case - 512 byte I/O blocksize"
48 $here/src/resvtest -i 40 -b 512 "$TEST_DIR/resv" | _filter_resv
49 [ $? -eq 0 ] && echo done
50 rm -f "$TEST_DIR/grumble"
51
52 # success, all done
53 status=0
54 exit