summaryrefslogtreecommitdiff
path: root/tests/generic/678
blob: 3c3c05b71bf65a560f9ae72a7781dd6f2ffcd37b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#! /bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2022 SUSE Linux Products GmbH.  All Rights Reserved.
#
# FS QA Test 678
#
# Test doing a read, with io_uring, over a file range that includes multiple
# extents. The read operation triggers page faults when accessing all pages of
# the read buffer except for the pages corresponding to the first extent.
# Then verify that the operation results in reading all the extents and returns
# the correct data.
#
. ./common/preamble
_begin_fstest auto quick io_uring

# Override the default cleanup function.
_cleanup()
{
	cd /
	rm -f $tmp.*
	rm -f $TEST_DIR/uring_read_fault.tmp
}

# get standard environment, filters and checks
. ./common/filter

# real QA test starts here

_supported_fs generic
_require_test
_require_odirect
_require_io_uring
_require_test_program uring_read_fault

$here/src/uring_read_fault $TEST_DIR/uring_read_fault.tmp
status=$?

echo "Silence is golden"
exit