2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2017 Red Hat, Inc. All Rights Reserved.
7 # Takes page fault while writev is iterating over the vectors in the IOV
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
15 status=1 # failure is the default!
16 trap "_cleanup; exit \$status" 0 1 2 3 15
24 # get standard environment, filters and checks
28 # remove previous $seqres.full before test
31 # real QA test starts here
35 _require_test_program "writev_on_pagefault"
37 # This program use several vectors for writev(), the kernel goes over them
38 # one at a time, copying them from userspace, getting the user data ready
39 # for IO. If it takes a page fault while iterating over the vectors in the
40 # IOV, it stops, and sends what it got so far. We try to find a bug at this
42 $here/src/writev_on_pagefault $TEST_DIR/testfile.$seq