#! /bin/bash # SPDX-License-Identifier: GPL-2.0 # Copyright (c) 2021 Red Hat, Inc. All Rights Reserved. # # FS QA Test 647 # # Trigger page faults in the same file during read and write # . ./common/preamble _begin_fstest auto quick # Override the default cleanup function. _cleanup() { cd / rm -f $tmp.* rm -f $TEST_DIR/mmap-rw-fault.tmp } # get standard environment, filters and checks . ./common/filter # real QA test starts here _supported_fs generic _require_test _require_odirect _require_test_program mmap-rw-fault echo "Silence is golden" $here/src/mmap-rw-fault $TEST_DIR/mmap-rw-fault.tmp status=$? exit