xfs: fix old fuzz test invocations of xfs_repair
[xfstests-dev.git] / tests / generic / 443
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2017 Red Hat, Inc.  All Rights Reserved.
4 #
5 # FS QA Test 443
6 #
7 # Takes page fault while writev is iterating over the vectors in the IOV
8 #
9 seq=`basename $0`
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
12
13 here=`pwd`
14 tmp=/tmp/$$
15 status=1        # failure is the default!
16 trap "_cleanup; exit \$status" 0 1 2 3 15
17
18 _cleanup()
19 {
20         cd /
21         rm -f $tmp.*
22 }
23
24 # get standard environment, filters and checks
25 . ./common/rc
26 . ./common/filter
27
28 # remove previous $seqres.full before test
29 rm -f $seqres.full
30
31 # real QA test starts here
32 _supported_fs generic
33 _require_test
34 _require_test_program "writev_on_pagefault"
35
36 # This program use several vectors for writev(), the kernel goes over them
37 # one at a time, copying them from userspace, getting the user data ready
38 # for IO. If it takes a page fault while iterating over the vectors in the
39 # IOV, it stops, and sends what it got so far. We try to find a bug at this
40 # moment.
41 $here/src/writev_on_pagefault $TEST_DIR/testfile.$seq
42
43 # success, all done
44 status=0
45 exit